Skip to content

Commit

Permalink
Add testing skeleton
Browse files Browse the repository at this point in the history
For #34
  • Loading branch information
sindresorhus committed Apr 1, 2017
1 parent 6705425 commit 2ee1adb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -14,7 +14,7 @@ function create(win, opts) {
}, {
id: 'cut',
label: 'Cut',
// needed because of macOS limitation:
// Needed because of macOS limitation:
// https://github.com/electron/electron/issues/5860
role: can('Cut') ? 'cut' : '',
enabled: can('Cut'),
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -11,7 +11,7 @@
},
"scripts": {
"start": "electron fixture.js",
"test": "xo"
"test": "xo && ava"
},
"files": [
"index.js"
Expand All @@ -31,11 +31,11 @@
"electron-is-dev": "^0.1.1"
},
"devDependencies": {
"ava": "*",
"electron": "^1.3.3",
"xo": "*"
},
"xo": {
"esnext": true,
"envs": [
"node",
"browser"
Expand Down
7 changes: 7 additions & 0 deletions test.js
@@ -0,0 +1,7 @@
import test from 'ava';
import contextMenu from '.'; // eslint-disable-line no-unused-vars

test(t => {
t.pass();
// contextMenu();
});

0 comments on commit 2ee1adb

Please sign in to comment.