tests: vaults-2 (#2368)

This commit is contained in:
Mo
2023-07-26 04:55:58 -05:00
committed by GitHub
parent 6ad5d028af
commit 7222ca7fd0
47 changed files with 900 additions and 310 deletions

View File

@@ -63,6 +63,16 @@ export default class WebDeviceInterface {
return models
}
async getDatabaseEntries(identifier, ids) {
const models = []
for (const id of ids) {
const key = this._keyForPayloadId(id, identifier)
const model = JSON.parse(localStorage[key])
models.push(model)
}
return models
}
async getDatabaseLoadChunks(options, identifier) {
const entries = await this.getAllDatabaseEntries(identifier)
const {