Skip to content

Commit

Permalink
Bump Electron to latest
Browse files Browse the repository at this point in the history
- Bump Electron to latest.
- Adjust types to new Electron types.
  • Loading branch information
undergroundwires committed Jun 20, 2024
1 parent fac26a6 commit ed93614
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 16 deletions.
17 changes: 9 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"@vue/test-utils": "^2.4.5",
"autoprefixer": "^10.4.19",
"cypress": "^13.7.3",
"electron": "^29.3.0",
"electron": "^31.0.2",
"electron-builder": "^24.13.3",
"electron-devtools-installer": "^3.2.0",
"electron-vite": "^2.1.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export class NodeElectronSaveFileDialog implements ElectronSaveFileDialog {
if (!dialogResult.filePath) {
return {
success: false,
error: { type: 'DialogDisplayError', message: 'Unexpected Error: File path is undefined after save dialog completion.' },
error: { type: 'DialogDisplayError', message: 'Unexpected Error: File path is empty after save dialog completion.' },
};
}
return { success: true, filePath: dialogResult.filePath };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,14 +305,12 @@ describe('NodeElectronSaveFileDialog', () => {
{
description: 'unexpected dialog return value failure',
expectedErrorType: 'DialogDisplayError',
expectedErrorMessage: 'Unexpected Error: File path is undefined after save dialog completion.',
expectedErrorMessage: 'Unexpected Error: File path is empty after save dialog completion.',
expectLogs: true,
buildFaultyContext: (setup) => {
const electronMock = new ElectronFileDialogOperationsStub().withMimicUserCancel(false);
electronMock.showSaveDialog = () => Promise.resolve({
canceled: false,
filePath: undefined,
});
const electronMock = new ElectronFileDialogOperationsStub()
.withUserSelectedFilePath('')
.withMimicUserCancel(false);
return setup
.withElectron(electronMock);
},
Expand Down

0 comments on commit ed93614

Please sign in to comment.