master
 1import ApplicationStorage from '../application-storage';
 2
 3describe("ApplicationStorage", () => {
 4  let subject = null;
 5
 6  beforeEach(() => {
 7    subject = new ApplicationStorage();
 8  });
 9
10  describe("#fetch", () => {
11    it("can fetch a saved value", () => {
12      const username = "mokha";
13      subject.save("username", username)
14      subject.fetch("username").then((result) => {
15        expect(result).toEqual(username)
16      });
17    });
18  });
19});