1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-14 02:06:29 +00:00
stoargeKey -> storageKey
This commit is contained in:
Dick Choi
2016-08-27 23:46:08 +09:00
parent 0127d5143a
commit 25f50b8cdf
8 changed files with 20 additions and 19 deletions

View File

@@ -21,8 +21,8 @@ test.beforeEach((t) => {
localStorage.setItem('storages', JSON.stringify([t.context.storage.cache]))
})
test.serial('Create a folder', (t) => {
const stoargeKey = t.context.storage.cache.key
test.serial('Update a folder', (t) => {
const storageKey = t.context.storage.cache.key
const folderKey = t.context.storage.json.folders[0].key
const input = {
name: 'changed',
@@ -30,7 +30,7 @@ test.serial('Create a folder', (t) => {
}
return Promise.resolve()
.then(function doTest () {
return updateFolder(stoargeKey, folderKey, input)
return updateFolder(storageKey, folderKey, input)
})
.then(function assert (data) {
t.true(_.find(data.storage.folders, input) != null)