Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
await store.put(d.key, JSON.stringify(d.value))
await store.del(d.key, JSON.stringify(d.value))
try {
await store.get(d.key)
} catch (e) {
assert.strictEqual(true, true)
}
})
})
after(async () => {
await store.close()
})
})
implementations.forEach(implementation => {
describe(`Storage Adapters - ${implementation.key}`, function () {
this.timeout(timeout)
let storage, store
let location = implementation.fileName
let server = implementation.server
beforeEach(async () => {
let storageType = implementation.module
storage = Storage(storageType)
if (server && server.start) await implementation.server.start({})
})
afterEach(async () => {
await store.close()