Skip to content

Commit e5abec4

Browse files
committed
Add adapter-test for non-existing key
1 parent 059cb47 commit e5abec4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

adapter-tests/unit-tests.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ module.exports = function testAdapter(options) {
5151
});
5252
});
5353

54+
it('should return empty list of views when key has no views', async () => {
55+
expect(await adapter.get('/c-key')).toEqual({ views: [] });
56+
});
57+
5458
it('should return all saves on getAll', async () => {
5559
await adapter.put('/a-key', { views: [{ time: 1490623474639 }] });
5660
await adapter.put('/another-key', { views: [{ time: 1490623474639 }] });

0 commit comments

Comments
 (0)