mirror of
https://github.com/stablyai/orca.git
synced 2026-09-24 16:02:41 +00:00
test: document relay window test double safety
This commit is contained in:
@@ -90,6 +90,7 @@ describe('requestTerminalTabCloseFromRenderer', () => {
|
||||
isDestroyed: () => false,
|
||||
webContents
|
||||
})
|
||||
// oxlint-disable-next-line typescript/consistent-type-assertions -- SAFETY: the EventEmitter test double implements the BrowserWindow events used by this test.
|
||||
const pending = requestTerminalTabCloseFromRenderer(mainWindow as never, 'tab-closed')
|
||||
expect(ipcEmitter.listenerCount('ui:terminalTabCloseResponse')).toBe(1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user