From 90384de9f59f5438b2acb709333be549087af864 Mon Sep 17 00:00:00 2001 From: Nicolas Bonamy Date: Tue, 14 May 2024 13:29:13 -0500 Subject: [PATCH] test fix --- tests/unit/commander.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/unit/commander.test.ts b/tests/unit/commander.test.ts index e25b0b5..a898bfb 100644 --- a/tests/unit/commander.test.ts +++ b/tests/unit/commander.test.ts @@ -25,6 +25,7 @@ vi.mock('../../src/main/window.ts', async () => { closeWaitingPanel: vi.fn(), openChatWindow: vi.fn(), hideWindows: vi.fn(), + restoreWindows: vi.fn(), releaseFocus: vi.fn() } }) @@ -100,6 +101,7 @@ test('Chat Window command', async () => { expect(window.openChatWindow).toHaveBeenCalledOnce() expect(window.closeWaitingPanel).toHaveBeenCalledOnce() + expect(window.restoreWindows).toHaveBeenCalledOnce() expect(window.releaseFocus).toHaveBeenCalledOnce() expect(Automator.prototype.moveCaretBelow).not.toHaveBeenCalled()