update keyValueStore

This commit is contained in:
2017-08-16 18:25:45 +02:00
parent bb1293c764
commit 2ec33a118a
7 changed files with 111 additions and 75 deletions

View File

@ -1,6 +1,6 @@
import { expect, tap } from 'tapbundle'
import * as npmextra from '../dist/index'
import * as npmextra from '../ts/index'
let myKeyValueStore: npmextra.KeyValueStore
@ -16,10 +16,10 @@ tap.test('expect result to be empty', async () => {
})
tap.test('expect to add an object to the kv Store', async () => {
await myKeyValueStore.write({
await myKeyValueStore.writeAll({
myKey: 'myValue'
})
await expect(myKeyValueStore.read('myKey')).to.eventually.equal('myValue')
await expect(myKeyValueStore.readKey('myKey')).to.eventually.equal('myValue')
})
tap.start()

View File

@ -2,7 +2,7 @@ import { expect, tap } from 'tapbundle'
import path = require('path')
// module to test
import npmExtra = require('../dist/index')
import npmExtra = require('../ts/index')
let testNpmextra: npmExtra.Npmextra