A test suite that ensures a given implementation implements the Blockstore interface properly.
const MyBlockstore from './path/to/my-blockstore')const suite from 'interface-blockstore-tests')describe('MyBlockstore', () => { describe('interface-blockstore compliance tests', () => { suite({ setup () { return new MyBlockstore() }, teardown () {} }) })}) Copy
const MyBlockstore from './path/to/my-blockstore')const suite from 'interface-blockstore-tests')describe('MyBlockstore', () => { describe('interface-blockstore compliance tests', () => { suite({ setup () { return new MyBlockstore() }, teardown () {} }) })})
A test suite that ensures a given implementation implements the Blockstore interface properly.
Example