summaryrefslogtreecommitdiff
path: root/app/infrastructure/__tests__/application-storage_spec.js
blob: 4d4c70ef40a7a3e929b7fbbcf538b5dc11ee89de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import ApplicationStorage from '../application-storage';

describe("ApplicationStorage", () => {
  let subject = null;

  beforeEach(() => {
    subject = new ApplicationStorage();
  });

  describe("#fetch", () => {
    it("can fetch a saved value", () => {
      const username = "mokha";
      subject.save("username", username)
      subject.fetch("username").then((result) => {
        expect(result).toEqual(username)
      });
    });
  });
});