fix(core): update

This commit is contained in:
2023-01-18 17:45:19 +01:00
parent 47b511f1f0
commit 6f1e32284d
13 changed files with 143 additions and 86 deletions

View File

@@ -14,15 +14,17 @@ tap.test('should find an entry', async () => {
}>();
fastmap.addToMap('heythere', {
value1: 'heyho',
value2: 'heyho2'
})
value2: 'heyho2',
});
fastmap.addToMap('heythere2', {
value1: 'heyho3',
value2: 'heyho4'
value2: 'heyho4',
});
const result = await fastmap.find(async (itemArg)=> {return itemArg.value2 === 'heyho4'});
const result = await fastmap.find(async (itemArg) => {
return itemArg.value2 === 'heyho4';
});
expect(result.value1).toEqual('heyho3');
});
tap.start();
tap.start();