Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nbonamy committed May 14, 2024
1 parent d78ecd8 commit 90384de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/unit/commander.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
})
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 90384de

Please sign in to comment.