BREAKING CHANGE(objectmap): switch to async behaviours

This commit is contained in:
2021-09-21 16:34:12 +02:00
parent 15b8fe406a
commit f402e55ff3
3 changed files with 23 additions and 8 deletions

View File

@ -52,7 +52,7 @@ tap.test('Objectmap.forEach -> should correctly run a function forEach map objec
tap.test('lik.Objectmap.find() -> should correctly find an object', async () => {
let myObject = { propOne: 'helloThere', propTwo: 'helloAnyway' };
testObjectmap.add(myObject);
let referenceObject = testObjectmap.find((itemArg) => {
let referenceObject = await testObjectmap.find(async (itemArg) => {
return itemArg.propOne === 'helloThere';
});
// tslint:disable-next-line:no-unused-expression