From 83d18f4bb3a2c6dcf7a19542695547c6070463e6 Mon Sep 17 00:00:00 2001 From: Sudo-Ivan Date: Sat, 3 Jan 2026 23:02:33 -0600 Subject: [PATCH] refactor(tests): remove unnecessary blank lines in AuthPage, CommandPalette, and ConfirmDialog tests --- tests/frontend/AuthPage.test.js | 1 - tests/frontend/CommandPalette.test.js | 1 - tests/frontend/ConfirmDialog.test.js | 8 ++++---- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/tests/frontend/AuthPage.test.js b/tests/frontend/AuthPage.test.js index 770a32e..a03d429 100644 --- a/tests/frontend/AuthPage.test.js +++ b/tests/frontend/AuthPage.test.js @@ -348,4 +348,3 @@ describe("AuthPage.vue", () => { expect(wrapper.vm.error).toContain("Failed to check"); }); }); - diff --git a/tests/frontend/CommandPalette.test.js b/tests/frontend/CommandPalette.test.js index ac75a69..be568e4 100644 --- a/tests/frontend/CommandPalette.test.js +++ b/tests/frontend/CommandPalette.test.js @@ -308,4 +308,3 @@ describe("CommandPalette.vue", () => { expect(results.length).toBe(0); }); }); - diff --git a/tests/frontend/ConfirmDialog.test.js b/tests/frontend/ConfirmDialog.test.js index a34b9fd..9a075a8 100644 --- a/tests/frontend/ConfirmDialog.test.js +++ b/tests/frontend/ConfirmDialog.test.js @@ -99,16 +99,16 @@ describe("ConfirmDialog.vue", () => { const classes = el.classes(); return classes.includes("inset-0") && !classes.includes("z-[200]"); }); - + if (backdrop && backdrop.exists()) { await backdrop.trigger("click"); await wrapper.vm.$nextTick(); expect(resolvePromise).toHaveBeenCalledWith(false); expect(wrapper.find(".fixed").exists()).toBe(false); } else { - wrapper.vm.cancel(); - await wrapper.vm.$nextTick(); - expect(resolvePromise).toHaveBeenCalledWith(false); + wrapper.vm.cancel(); + await wrapper.vm.$nextTick(); + expect(resolvePromise).toHaveBeenCalledWith(false); } });