From 691e9ca8f28a8430e4765ab1a9ae13687289a53b Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sat, 28 Jul 2018 17:06:20 +0900 Subject: Fix last tab is undefined --- test/background/infrastructures/memory-storage.test.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/background/infrastructures/memory-storage.test.js') diff --git a/test/background/infrastructures/memory-storage.test.js b/test/background/infrastructures/memory-storage.test.js index 5d62880..0fea895 100644 --- a/test/background/infrastructures/memory-storage.test.js +++ b/test/background/infrastructures/memory-storage.test.js @@ -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'); -- cgit v1.2.3