Bump Electron to latest

- Bump Electron to latest.
- Adjust types to new Electron types.
This commit is contained in:
undergroundwires
2024-06-20 10:48:59 +02:00
parent fac26a6ca0
commit ed93614ca3
4 changed files with 15 additions and 16 deletions

View File

@@ -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);
},