aboutsummaryrefslogtreecommitdiff
path: root/test/shared/versions/storage.test.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2018-07-13 22:36:56 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2018-07-13 22:36:56 +0900
commit944dea59199fa03f77e0e7c0d3c02acf8ccb458f (patch)
tree5f44471cdb32376a8c93e6f6eba738180f08c96f /test/shared/versions/storage.test.js
parent77b4e807e2a8b3e7ddb5f042719a34962a31b1c4 (diff)
parent28bfa3ac8124d3453cd539db26da4f4703e783df (diff)
Merge remote-tracking branch 'origin/master' into greenkeeper/css-loader-1.0.0
Diffstat (limited to 'test/shared/versions/storage.test.js')
-rw-r--r--test/shared/versions/storage.test.js28
1 files changed, 0 insertions, 28 deletions
diff --git a/test/shared/versions/storage.test.js b/test/shared/versions/storage.test.js
deleted file mode 100644
index f541abf..0000000
--- a/test/shared/versions/storage.test.js
+++ /dev/null
@@ -1,28 +0,0 @@
-import * as storage from 'shared/versions/storage';
-
-describe("shared/versions/storage", () => {
- describe('#load', () => {
- beforeEach(() => {
- return browser.storage.local.remove('version');
- });
-
- it('loads saved version', async() => {
- await browser.storage.local.set({ version: '1.2.3' });
- let version = await storage.load();
- expect(version).to.equal('1.2.3');
- });
-
- it('returns undefined if no versions in storage', async() => {
- let version = await storage.load();
- expect(version).to.be.a('undefined');
- });
- });
-
- describe('#save', () => {
- it('saves version string', async() => {
- await storage.save('2.3.4');
- let { version } = await browser.storage.local.get('version');
- expect(version).to.equal('2.3.4');
- });
- });
-});