Skip to content

Commit

Permalink
test: djustment due to change in API call method for logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mato533 committed Oct 21, 2024
1 parent 5322972 commit 58291b6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/__tests__/main.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down

0 comments on commit 58291b6

Please sign in to comment.