Skip to content

Commit

Permalink
Merge pull request #9 from spaceagetv/fix/certificate-dialog
Browse files Browse the repository at this point in the history
fix: showCertificateTrustDialog should return promise
  • Loading branch information
jjeff authored Jun 19, 2024
2 parents 31c3dcd + cb5c11c commit 0e37997
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.formatOnPaste": true,
Expand Down
2 changes: 1 addition & 1 deletion src/MockDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 0e37997

Please sign in to comment.