interface-datastore
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -0,1 +1,10 @@ | ||
## [3.0.2](https://github.com/ipfs/interface-datastore/compare/v3.0.1...v3.0.2) (2021-01-22) | ||
### Bug Fixes | ||
* open store in tests ([#66](https://github.com/ipfs/interface-datastore/issues/66)) ([6092b10](https://github.com/ipfs/interface-datastore/commit/6092b103b40cb8ee1c57d42082221c1e899bdc14)) | ||
## [3.0.1](https://github.com/ipfs/interface-datastore/compare/v3.0.0...v3.0.1) (2021-01-17) | ||
@@ -2,0 +11,0 @@ |
{ | ||
"name": "interface-datastore", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "datastore interface", | ||
@@ -5,0 +5,0 @@ "leadMaintainer": "Alex Potsides <alex.potsides@protocol.ai>", |
@@ -30,2 +30,9 @@ /* eslint-env mocha */ | ||
const createStore = async () => { | ||
const store = await test.setup() | ||
if (!store) throw new Error('missing store') | ||
await store.open() | ||
return store | ||
} | ||
describe('put', () => { | ||
@@ -36,4 +43,3 @@ /** @type {Datastore} */ | ||
beforeEach(async () => { | ||
store = await test.setup() | ||
if (!store) throw new Error('missing store') | ||
store = await createStore() | ||
}) | ||
@@ -66,4 +72,3 @@ | ||
beforeEach(async () => { | ||
store = await test.setup() | ||
if (!store) throw new Error('missing store') | ||
store = await createStore() | ||
}) | ||
@@ -98,4 +103,3 @@ | ||
beforeEach(async () => { | ||
store = await test.setup() | ||
if (!store) throw new Error('missing store') | ||
store = await createStore() | ||
}) | ||
@@ -131,4 +135,3 @@ | ||
beforeEach(async () => { | ||
store = await test.setup() | ||
if (!store) throw new Error('missing store') | ||
store = await createStore() | ||
}) | ||
@@ -167,4 +170,3 @@ | ||
beforeEach(async () => { | ||
store = await test.setup() | ||
if (!store) throw new Error('missing store') | ||
store = await createStore() | ||
}) | ||
@@ -207,4 +209,3 @@ | ||
beforeEach(async () => { | ||
store = await test.setup() | ||
if (!store) throw new Error('missing store') | ||
store = await createStore() | ||
}) | ||
@@ -244,4 +245,3 @@ | ||
beforeEach(async () => { | ||
store = await test.setup() | ||
if (!store) throw new Error('missing store') | ||
store = await createStore() | ||
}) | ||
@@ -353,4 +353,3 @@ | ||
before(async () => { | ||
store = await test.setup() | ||
if (!store) throw new Error('missing store') | ||
store = await createStore() | ||
@@ -357,0 +356,0 @@ const b = store.batch() |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
73435
1915