1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-24 06:28:42 +01:00

feat: improves search by showing all matches within threshold and enable scrolling instead (#3029)

This commit is contained in:
Amir Raminfar
2024-06-12 09:23:10 -07:00
committed by GitHub
parent 19ee1fedc4
commit 214b1825a8
2 changed files with 56 additions and 60 deletions

View File

@@ -57,9 +57,9 @@ describe("<FuzzySearchModal />", () => {
vi.mocked(useRouter().push).mockReset();
});
test("shows running all", async () => {
test("shows none initially", async () => {
const wrapper = createFuzzySearchModal();
expect(wrapper.findAll("li").length).toBe(3);
expect(wrapper.findAll("li").length).toBe(0);
});
test("search for foo", async () => {