Skip to content

Commit 368f1d3

Browse files
committed
test(knowledge): assert only the dropped days, not the URL adapter's next flush
1 parent a545006 commit 368f1d3

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

‎apps/sim/app/workspace/[workspaceId]/home/components/knowledge-search-results/knowledge-search-results.test.tsx‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -242,13 +242,6 @@ describe('result paging and the custom window', () => {
242242
)!
243243
await act(async () => anyTime.click())
244244
expect(mocks.search.mock.calls.at(-1)![2]).toEqual({})
245-
await act(async () =>
246-
[...container.querySelectorAll('button')]
247-
.find((b) => b.textContent === 'Custom range')!
248-
.click()
249-
)
250-
/** Back on the custom window, the old days are gone: nothing is searched until new ones are chosen. */
251-
expect(mocks.search.mock.calls.at(-1)![1]).toBe('')
252245
})
253246

254247
it('searches nothing while a custom window has no days yet', async () => {

0 commit comments

Comments
 (0)