fuel-core
Version:
Essential javascript architecture for the Fuel side chain
24 lines (15 loc) • 443 B
JavaScript
const IndexDB = require('./IndexDB');
// Core
const { test } = require('zora');
// Test verify block header
test('module test', async t => {
const db = new IndexDB();
const r1 = await db.get('hello');
await db.put('hello', 'yes');
const r2 = await db.get('hello');
await db.del('hello');
const r3 = await db.get('hello');
t.equal(r1, null, 'read null');
t.equal(r2, 'yes', 'write ');
t.equal(r3, null, 'remove');
});