1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-15 02:36:36 +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,14 +21,14 @@ test.beforeEach((t) => {
})
test.serial('Rename a storage', (t) => {
const stoargeKey = t.context.storage.cache.key
const storageKey = t.context.storage.cache.key
return Promise.resolve()
.then(function doTest () {
return renameStorage(stoargeKey, 'changed')
return renameStorage(storageKey, 'changed')
})
.then(function assert (data) {
let cachedStorageList = JSON.parse(localStorage.getItem('storages'))
t.true(_.find(cachedStorageList, {key: stoargeKey}).name === 'changed')
t.true(_.find(cachedStorageList, {key: storageKey}).name === 'changed')
})
})