fix: repair test failures from mobile feature additions
- Add shouldRunSetupForCreate to hooks mock in orca-runtime tests - Fix send() helper to use rest args, avoiding extra undefined in IPC calls Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
@@ -200,9 +200,9 @@ function registerRuntimeWindowLifecycle(
|
||||
runtime: OrcaRuntimeService
|
||||
): void {
|
||||
runtime.attachWindow(mainWindow.id)
|
||||
const send = (channel: string, data?: unknown): void => {
|
||||
const send = (channel: string, ...args: unknown[]): void => {
|
||||
if (!mainWindow.isDestroyed()) {
|
||||
mainWindow.webContents.send(channel, data)
|
||||
mainWindow.webContents.send(channel, ...args)
|
||||
}
|
||||
}
|
||||
runtime.setNotifier({
|
||||
|
||||
Reference in New Issue
Block a user