Skip to content

Commit

Permalink
add a "control" test where no options are set to ensure default scena…
Browse files Browse the repository at this point in the history
…rio is working
  • Loading branch information
hns258 committed Aug 21, 2022
1 parent 2bdcb74 commit 39d8512
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
12 changes: 12 additions & 0 deletions fixtures/fixture-no-options.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
'use strict';
const path = require('path');
const {app, BrowserWindow} = require('electron');
const contextMenu = require('..');

contextMenu();

(async () => {
await app.whenReady();

await (new BrowserWindow({})).loadFile(path.join(__dirname, 'fixture.html'));
})();
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"start": "electron fixtures/fixture.js",
"test": "xo && ava && tsd",
"start-fixture2": "electron fixtures/fixture-menu.js",
"start-fixture3": "electron fixtures/fixture-toggle.js"
"start-fixture3": "electron fixtures/fixture-toggle.js",
"start-fixture4": "electron fixtures/fixture-no-options.js"
},
"files": [
"index.js",
Expand Down

0 comments on commit 39d8512

Please sign in to comment.