mirror: A tiny/fast dataloader implementation
0

Configure Feed

Select the types of activity you want to include in your feed.

test: make sure the api surface is tested

Marais Rossouw (Oct 13, 2023, 5:13 PM +1000) b8a84883 a9871f25

+10
+5
src/cache.test.ts
··· 4 4 5 5 import * as dldr from './cache'; 6 6 7 + test('api', () => { 8 + assert.type(dldr.load, 'function'); 9 + assert.type(dldr.factory, 'function'); 10 + }); 11 + 7 12 test('should work with default cache', async () => { 8 13 const loader = spy((keys: string[]) => Promise.resolve(keys)); 9 14
+5
src/index.test.ts
··· 30 30 }; 31 31 } 32 32 33 + test('api', () => { 34 + assert.type(dldr.load, 'function'); 35 + assert.type(dldr.factory, 'function'); 36 + }); 37 + 33 38 test('should work', async () => { 34 39 const loader = spy((keys: string[]) => Promise.resolve(keys)); 35 40