Fix last tab is undefined

This commit is contained in:
Shin'ya Ueoka 2018-07-28 17:06:20 +09:00
parent b3dafedf88
commit 691e9ca8f2
3 changed files with 13 additions and 2 deletions

View file

@ -15,6 +15,11 @@ describe("background/infrastructures/memory-storage", () => {
expect(cache.get('object')).to.deep.equal({ hello: '123' });
});
it('returns undefined if no keys', () => {
let cache = new MemoryStorage();
expect(cache.get('no-keys')).to.be.undefined;
})
it('stored on shared memory', () => {
let cache = new MemoryStorage();
cache.set('red', 'apple');