fix(core): update

This commit is contained in:
2023-08-24 10:44:42 +02:00
parent 8fa3fd8ac1
commit 072ee31c3f
3 changed files with 29 additions and 6 deletions

View File

@ -9,6 +9,10 @@ tap.test('should create a keyValueStore', async () => {
expect(myKeyValueStore).toBeInstanceOf(npmextra.KeyValueStore);
});
tap.test('should reset the keyValueStore', async () => {
await myKeyValueStore.reset();
});
tap.test('expect result to be empty', async () => {
let result = await myKeyValueStore.readAll();
expect(JSON.stringify(result)).toEqual('{}');