feat: Update KeyValueStorage interface with entries function

This commit is contained in:
Joachim Van Herwegen
2021-02-25 16:59:14 +01:00
parent 52551ac773
commit 0f00a8dffd
8 changed files with 33 additions and 1 deletions

View File

@@ -17,6 +17,7 @@ describe('A MemoryMapStorage', (): void => {
it('returns data if it was set beforehand.', async(): Promise<void> => {
await expect(storage.set(identifier1, 'apple')).resolves.toBe(storage);
await expect(storage.get(identifier1)).resolves.toBe('apple');
await expect(storage.entries().next()).resolves.toEqual({ done: false, value: [ identifier1, 'apple' ]});
});
it('can check if data is present.', async(): Promise<void> => {