Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
robinjhuang committed Nov 9, 2024
1 parent 8992d68 commit 04cd566
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 6 additions & 1 deletion tests/unit/handlers/appinfoHandlers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ describe('AppInfoHandlers', () => {
});

it('should register all expected handle channels', () => {
const expectedChannels = [IPC_CHANNELS.IS_PACKAGED, IPC_CHANNELS.GET_ELECTRON_VERSION];
const expectedChannels = [
IPC_CHANNELS.IS_PACKAGED,
IPC_CHANNELS.GET_ELECTRON_VERSION,
IPC_CHANNELS.OPEN_FORUM,
IPC_CHANNELS.DEFAULT_INSTALL_LOCATION,
];

expectedChannels.forEach((channel) => {
expect(ipcMain.handle).toHaveBeenCalledWith(channel, expect.any(Function));
Expand Down
2 changes: 0 additions & 2 deletions tests/unit/handlers/pathHandler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ describe('PathHandlers', () => {
});

it('should register all expected handle channels', () => {
handler.registerHandlers();

const expectedChannelsForHandle = [IPC_CHANNELS.GET_MODEL_CONFIG_PATH, IPC_CHANNELS.GET_BASE_PATH];

expectedChannelsForHandle.forEach((channel) => {
Expand Down

0 comments on commit 04cd566

Please sign in to comment.