From ae9afdd8d9fe8753733a6408e46c2a3e59a0143e Mon Sep 17 00:00:00 2001 From: Lukas Martinelli Date: Thu, 29 Dec 2016 17:40:12 +0100 Subject: [PATCH] Replace gone style store test with sample --- test/sample_test.js | 7 +++++++ test/stylestore_test.js | 16 ---------------- 2 files changed, 7 insertions(+), 16 deletions(-) create mode 100644 test/sample_test.js delete mode 100644 test/stylestore_test.js diff --git a/test/sample_test.js b/test/sample_test.js new file mode 100644 index 0000000..b187c05 --- /dev/null +++ b/test/sample_test.js @@ -0,0 +1,7 @@ +import assert from 'assert' + +describe('Component', () => { + it('#always successds', () => { + assert.equal(1, 1) + }) +}) diff --git a/test/stylestore_test.js b/test/stylestore_test.js deleted file mode 100644 index 4f7da80..0000000 --- a/test/stylestore_test.js +++ /dev/null @@ -1,16 +0,0 @@ -import { SettingsStore } from '../src/libs/stylestore.js' -import assert from 'assert' - -describe('SettingsStore', () => { - const store = new SettingsStore() - - it('#get should return access token from local storage', () => { - window.localStorage.setItem('maputnik:access_token', 'OLD_TOKEN') - assert.equal(store.accessToken, 'OLD_TOKEN') - }) - - it('#set should set access token in local storage', () => { - store.accessToken = 'NEW_TOKEN' - assert.equal(window.localStorage.getItem('maputnik:access_token'), 'NEW_TOKEN') - }) -})