mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-15 10:46:32 +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:
@@ -82,7 +82,6 @@
|
|||||||
"history": "^1.17.0",
|
"history": "^1.17.0",
|
||||||
"jsdom": "^9.4.2",
|
"jsdom": "^9.4.2",
|
||||||
"merge-stream": "^1.0.0",
|
"merge-stream": "^1.0.0",
|
||||||
"mock-fs": "^3.11.0",
|
|
||||||
"nib": "^1.1.0",
|
"nib": "^1.1.0",
|
||||||
"oh-my-cdn": "^0.1.1",
|
"oh-my-cdn": "^0.1.1",
|
||||||
"react": "^15.3.0",
|
"react": "^15.3.0",
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ const sander = require('sander')
|
|||||||
const os = require('os')
|
const os = require('os')
|
||||||
const CSON = require('season')
|
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) => {
|
test.beforeEach((t) => {
|
||||||
t.context.storage = TestDummy.dummyStorage(storagePath)
|
t.context.storage = TestDummy.dummyStorage(storagePath)
|
||||||
|
|||||||
7
tests/fixtures/TestDummy.js
vendored
7
tests/fixtures/TestDummy.js
vendored
@@ -76,11 +76,14 @@ function dummyNote (override = {}) {
|
|||||||
* @param {Object}
|
* @param {Object}
|
||||||
* ```
|
* ```
|
||||||
* {
|
* {
|
||||||
* json: {folders: []},
|
* json: {
|
||||||
|
* folders: []
|
||||||
|
* version: String(enum:'1.0')
|
||||||
|
* },
|
||||||
* cache: {
|
* cache: {
|
||||||
* key: String,
|
* key: String,
|
||||||
* name: String,
|
* name: String,
|
||||||
* type: String(enum:FILESYSTEM),
|
* type: String(enum:'FILESYSTEM'),
|
||||||
* path: String
|
* path: String
|
||||||
* },
|
* },
|
||||||
* notes: []
|
* notes: []
|
||||||
|
|||||||
Reference in New Issue
Block a user