From 58291b601d832fb4b9c2a8b97e771afbcc3e2605 Mon Sep 17 00:00:00 2001 From: mato533 <35281743+mato533@users.noreply.github.com> Date: Mon, 21 Oct 2024 15:11:51 +0900 Subject: [PATCH] test: djustment due to change in API call method for logging --- src/__tests__/main.spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/__tests__/main.spec.ts b/src/__tests__/main.spec.ts index 713c187..c0ab84e 100644 --- a/src/__tests__/main.spec.ts +++ b/src/__tests__/main.spec.ts @@ -51,22 +51,22 @@ describe('main', () => { expect(mocks.ipcMain.handle).toHaveBeenNthCalledWith( 2, channelMap.invoke.fn1, - apiHandlers.invoke.fn1 + mocks.ipcMain.handle.mock.calls[1][1] ) expect(mocks.ipcMain.handle).toHaveBeenNthCalledWith( 3, channelMap.invoke.fn2, - apiHandlers.invoke.fn2 + mocks.ipcMain.handle.mock.calls[2][1] ) expect(mocks.ipcMain.handle).toHaveBeenNthCalledWith( 4, channelMap.invoke.name1.fn1, - apiHandlers.invoke.name1.fn1 + mocks.ipcMain.handle.mock.calls[3][1] ) expect(mocks.ipcMain.handle).toHaveBeenNthCalledWith( 5, channelMap.invoke.name1.fn2, - apiHandlers.invoke.name1.fn2 + mocks.ipcMain.handle.mock.calls[4][1] ) }) afterEach(() => {