From 8178ec5671a6ecf2a9e6895495837dfc82beb789 Mon Sep 17 00:00:00 2001 From: Dick Choi Date: Sat, 27 Aug 2016 16:36:37 +0900 Subject: [PATCH] cleanup tests remove mock-fs update the comment of TestDummy.dummyStorage change dummy storage name of createFolder test --- package.json | 1 - tests/dataApi/createFolder.js | 2 +- tests/fixtures/TestDummy.js | 7 +++++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 0e2bb2d1..50918fb6 100644 --- a/package.json +++ b/package.json @@ -82,7 +82,6 @@ "history": "^1.17.0", "jsdom": "^9.4.2", "merge-stream": "^1.0.0", - "mock-fs": "^3.11.0", "nib": "^1.1.0", "oh-my-cdn": "^0.1.1", "react": "^15.3.0", diff --git a/tests/dataApi/createFolder.js b/tests/dataApi/createFolder.js index 80def1bf..1761eef7 100644 --- a/tests/dataApi/createFolder.js +++ b/tests/dataApi/createFolder.js @@ -14,7 +14,7 @@ const sander = require('sander') const os = require('os') const CSON = require('season') -const storagePath = path.join(os.tmpdir(), 'test/rename-storage') +const storagePath = path.join(os.tmpdir(), 'test/create-folder') test.beforeEach((t) => { t.context.storage = TestDummy.dummyStorage(storagePath) diff --git a/tests/fixtures/TestDummy.js b/tests/fixtures/TestDummy.js index c51f5a11..19cfa9c5 100644 --- a/tests/fixtures/TestDummy.js +++ b/tests/fixtures/TestDummy.js @@ -76,11 +76,14 @@ function dummyNote (override = {}) { * @param {Object} * ``` * { - * json: {folders: []}, + * json: { + * folders: [] + * version: String(enum:'1.0') + * }, * cache: { * key: String, * name: String, - * type: String(enum:FILESYSTEM), + * type: String(enum:'FILESYSTEM'), * path: String * }, * notes: []