diff --git a/app/common/__tests__/localstorage.test.js b/app/common/__tests__/localstorage.test.js index 144c63636..799e06f11 100644 --- a/app/common/__tests__/localstorage.test.js +++ b/app/common/__tests__/localstorage.test.js @@ -20,8 +20,19 @@ describe('LocalStorage()', () => { it('does basic operations', () => { const basePath = `/tmp/insomnia-localstorage-${Math.random()}`; const localStorage = new LocalStorage(basePath); + + // Test get and set + localStorage.setItem('foo', 'bar 1'); localStorage.setItem('foo', 'bar'); expect(localStorage.getItem('foo', 'BAD')).toBe('bar'); + + // Test Object storage + localStorage.setItem('obj', {foo: 'bar', arr: [1, 2, 3]}); + expect(localStorage.getItem('obj')).toEqual({foo: 'bar', arr: [1, 2, 3]}); + + // Test default values + expect(localStorage.getItem('dne', 'default')).toEqual('default'); + expect(localStorage.getItem('dne')).toEqual('default'); }); it('stores a key', () => { diff --git a/app/sync/__tests__/jwk.test.js b/app/sync/__tests__/jwk.test.js deleted file mode 100644 index b7d17557d..000000000 --- a/app/sync/__tests__/jwk.test.js +++ /dev/null @@ -1,7 +0,0 @@ -import jwkUtils from '../jwk'; - -describe('LocalStorage()', () => { - it('create directory', async () => { - expect(true).toEqual(true); - }); -}); diff --git a/app/sync/jwk.js b/app/sync/jwk.js deleted file mode 100644 index e69de29bb..000000000