mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-15 02:36:36 +00:00
fix type
stoargeKey -> storageKey
This commit is contained in:
@@ -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')
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user