Skip to content

Commit

Permalink
Fixed test for function getManyByPredicate (#489)
Browse files Browse the repository at this point in the history
* fix(doc): fixed mistake on documentation

* feat: added function getManyByPredicate

* fix: remove console.log

* fix: update package-lock file

* fix: fixed test for getManyByPredicate

---------

Co-authored-by: Sergey Rogachev <[email protected]>
  • Loading branch information
Sir-J and Sergey Rogachev authored Sep 26, 2023
1 parent 96feb56 commit c7800be
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/entities/src/lib/queries.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,11 @@ describe('queries', () => {
store.update(addEntities(createTodo(3)));
store.update(addEntities(createTodo(4)));
expect(
store.query(getManyByPredicate((el: Todo) => [4, 3].includes(el.id)))
store.query(
getManyByPredicate((el: Todo) => [4, 3].includes(el.id), {
pluck: 'id',
})
)
).toMatchInlineSnapshot(`
Array [
3,
Expand Down

0 comments on commit c7800be

Please sign in to comment.