Commit 7e8e83e

mo khan <mo@mokhan.ca>
2016-12-23 21:35:28
fix spec.
1 parent 77cd444
Changed files (1)
app
infrastructure
app/infrastructure/__tests__/application-storage_spec.js
@@ -11,9 +11,9 @@ describe("ApplicationStorage", () => {
     it("can fetch a saved value", () => {
       const username = "mokha";
       subject.save("username", username)
-      expect(
-        subject.fetch("username")
-      ).toEqual(username)
+      subject.fetch("username").then((result) => {
+        expect(result).toEqual(username)
+      });
     });
   });
 });