interface-blockstore-tests

Compliance tests for the blockstore interface

Usage no npm install needed!

<script type="module">
  import interfaceBlockstoreTests from 'https://cdn.skypack.dev/interface-blockstore-tests';
</script>

README

interface-blockstore-tests

A test suite for interface-blockstore implementations

Table of Contents

Usage

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 () {}
    })
  })
})

Contribute

PRs accepted.

Small note: If editing the Readme, please conform to the standard-readme specification.

License

Apache-2.0 OR MIT