2020-02-05 17:11:30 +00:00
|
|
|
import { expect, tap } from '@pushrocks/tapbundle';
|
|
|
|
import * as levelcache from '../ts/index';
|
|
|
|
|
2020-02-14 17:28:13 +00:00
|
|
|
let testLevelCache: levelcache.LevelCache;
|
|
|
|
|
|
|
|
tap.test('should create a new levelcache instance', async () => {
|
2020-02-15 22:38:28 +00:00
|
|
|
testLevelCache = new levelcache.LevelCache({
|
|
|
|
|
|
|
|
});
|
2020-02-14 17:28:13 +00:00
|
|
|
expect(testLevelCache).to.be.instanceOf(levelcache.LevelCache);
|
|
|
|
});
|
|
|
|
|
|
|
|
tap.test('should cache a value', async () => {
|
2020-02-15 22:38:28 +00:00
|
|
|
testLevelCache.
|
2020-02-05 17:11:30 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
tap.start();
|