From cb5c11cd97317e61d6c191064587837d584b1732 Mon Sep 17 00:00:00 2001 From: Jeff Robbins Date: Wed, 19 Jun 2024 12:37:14 -0400 Subject: [PATCH] fix: showCertificateTrustDialog should return promise --- .vscode/settings.json | 2 +- src/MockDialog.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 8ed846b..25d24ad 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,6 +1,6 @@ { "editor.codeActionsOnSave": { - "source.fixAll.eslint": true + "source.fixAll.eslint": "explicit" }, "editor.defaultFormatter": "dbaeumer.vscode-eslint", "editor.formatOnPaste": true, diff --git a/src/MockDialog.ts b/src/MockDialog.ts index 5521f96..3e29175 100644 --- a/src/MockDialog.ts +++ b/src/MockDialog.ts @@ -14,7 +14,7 @@ export class MockDialog implements Electron.Dialog { checkboxChecked: false, } as Electron.MessageBoxReturnValue) public showErrorBox = sinon.stub() - public showCertificateTrustDialog = sinon.stub() + public showCertificateTrustDialog = sinon.stub().resolves() public showMessageBoxSync = sinon.stub().returns(0) public showOpenDialogSync = sinon.stub().returns(['test-file.txt']) public showSaveDialogSync = sinon.stub().returns('test-file.txt')