Skip to content

Commit

Permalink
update main tests for new ipc channels
Browse files Browse the repository at this point in the history
  • Loading branch information
emlys committed Apr 2, 2024
1 parent 4cfa229 commit a1283be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions workbench/tests/main/main.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,13 @@ describe('createWindow', () => {
test('should register various ipcMain listeners', async () => {
await createWindow();
const expectedHandleChannels = [
ipcMainChannels.ADD_PLUGIN,
ipcMainChannels.CHANGE_LANGUAGE,
ipcMainChannels.CHECK_STORAGE_TOKEN,
ipcMainChannels.CHECK_FILE_PERMISSIONS,
ipcMainChannels.GET_SETTING,
ipcMainChannels.GET_N_CPUS,
ipcMainChannels.INVEST_SERVE,
ipcMainChannels.INVEST_VERSION,
ipcMainChannels.IS_FIRST_RUN,
ipcMainChannels.SHOW_OPEN_DIALOG,
Expand All @@ -194,6 +196,7 @@ describe('createWindow', () => {
ipcMainChannels.DOWNLOAD_URL,
ipcMainChannels.GET_ELECTRON_PATHS,
ipcMainChannels.GET_LANGUAGE,
ipcMainChannels.GET_SETTING,
ipcMainChannels.INVEST_RUN,
ipcMainChannels.INVEST_KILL,
ipcMainChannels.INVEST_READ_LOG,
Expand Down

0 comments on commit a1283be

Please sign in to comment.