1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Make composite unit test an unrealistic test scenario about undefined ids

Also make the thrown error suggest how to fix the problem.

Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>

Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
This commit is contained in:
Iku-turso 2022-10-24 11:43:06 +03:00
parent 271255114c
commit 2a678b44c9

View File

@ -287,7 +287,7 @@ Available parent ids are:
const items = [root, someItem, someOtherItem];
const getComposite = getCompositeFor<SomeItem>({
const getComposite = getCompositeFor<any>({
getId: (x) => x.id,
getParentId: (x) => x.parentId,
});