diff --git a/assets/components/FuzzySearchModal.spec.ts b/assets/components/FuzzySearchModal.spec.ts index 5f48eca3..388a123c 100644 --- a/assets/components/FuzzySearchModal.spec.ts +++ b/assets/components/FuzzySearchModal.spec.ts @@ -33,7 +33,7 @@ function createFuzzySearchModal() { containers: [ new Container("123", new Date(), "image", "test", "command", "host", {}, "status", "running", []), new Container("345", new Date(), "image", "foo bar", "command", "host", {}, "status", "running", []), - new Container("567", new Date(), "image", "baz", "command", "host", {}, "status", "exited", []), + new Container("567", new Date(), "image", "baz", "command", "host", {}, "status", "running", []), ], }, }, @@ -56,7 +56,8 @@ describe("", () => { beforeEach(() => { vi.mocked(useRouter().push).mockReset(); }); - test("shows all", async () => { + + test("shows running all", async () => { const wrapper = createFuzzySearchModal(); expect(wrapper.findAll("li").length).toBe(3); }); diff --git a/assets/components/FuzzySearchModal.vue b/assets/components/FuzzySearchModal.vue index a271c1a9..d6ac8c2a 100644 --- a/assets/components/FuzzySearchModal.vue +++ b/assets/components/FuzzySearchModal.vue @@ -24,14 +24,23 @@ :class="index === selectedIndex ? 'focus' : ''" >
- + + +
-