1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

add assertions to addStorage test

check version and folders attribute from resolved data and json
This commit is contained in:
Dick Choi
2016-08-28 00:20:08 +09:00
parent ec96021b00
commit 8d624459d4
2 changed files with 11 additions and 1 deletions

View File

@@ -40,7 +40,8 @@ function addStorage (input) {
return Promise.resolve(newStorage)
.then(resolveStorageData)
.then(function saveMetadataToLocalStorage () {
.then(function saveMetadataToLocalStorage (resolvedStorage) {
newStorage = resolvedStorage
rawStorages.push({
key: newStorage.key,
type: newStorage.type,