Skip to content

Commit

Permalink
test(core): make sure that query "q" returned results
Browse files Browse the repository at this point in the history
  • Loading branch information
francoischalifour committed Nov 19, 2020
1 parent e56b8ac commit bf6a07f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/autocomplete-core/src/__tests__/concurrency.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ describe('concurrency', () => {
x[0].state.collections.flatMap((x) => x.items)
);

// The first query should have brought results.
expect(itemsHistory.find((x) => x.label === 'a')).toBeDefined();
// The second query should never have brought results.
expect(itemsHistory.find((x) => x.label === 'ab')).toBeUndefined();

Expand Down

0 comments on commit bf6a07f

Please sign in to comment.