diff options
| author | mo khan <mo@mokhan.ca> | 2016-12-23 14:35:28 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2016-12-23 14:35:28 -0700 |
| commit | 7e8e83e6fd8c41d28368b0447210bf928ecb6571 (patch) | |
| tree | 32bcff8b6d274f4cde33d51763b3dc2757cd83bb | |
| parent | 77cd44455ecb332e29132a9285e2ffcaf6d96ba7 (diff) | |
fix spec.
| -rw-r--r-- | app/infrastructure/__tests__/application-storage_spec.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/infrastructure/__tests__/application-storage_spec.js b/app/infrastructure/__tests__/application-storage_spec.js index 0d1e7d2..4d4c70e 100644 --- a/app/infrastructure/__tests__/application-storage_spec.js +++ b/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) + }); }); }); }); |
