1
0
mirror of https://github.com/BoostIo/Boostnote synced 2026-01-16 10:29:21 +00:00

cleanup tests

remove mock-fs
update the comment of TestDummy.dummyStorage
change dummy storage name of createFolder test
This commit is contained in:
Dick Choi
2016-08-27 16:36:37 +09:00
parent 67dd089e67
commit 8178ec5671
3 changed files with 6 additions and 4 deletions

View File

@@ -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)

View File

@@ -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: []