Skip to content

Commit

Permalink
💚 Setup tests for travis (#11)
Browse files Browse the repository at this point in the history
HT @JBLatenight
  • Loading branch information
imlucas authored Aug 29, 2016
1 parent 2b2f0a3 commit 9089db2
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
sudo: false
language: node_js
node_js:
- 6
script: npm run ci
cache:
directories:
- node_modules
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"url": "https://github.com/mongodb-js/electron-squirrel-startup.git"
},
"scripts": {
"ci": "mocha",
"test": "mocha",
"ci": "xvfb-maybe npm test",
"test": "electron-mocha",
"check": "mongodb-js-precommit"
},
"precommit": [
Expand All @@ -21,10 +21,12 @@
"debug": "^2.2.0"
},
"devDependencies": {
"electron-mocha": "^3.0.5",
"electron-prebuilt": "^1.3.4",
"eslint-config-mongodb-js": "^2.2.0",
"mocha": "^2.2.5",
"mongodb-js-precommit": "^0.2.9",
"pre-commit": "^1.0.10"
"pre-commit": "^1.0.10",
"xvfb-maybe": "^0.1.3"
},
"dependency-check": {
"ignore": [
Expand Down
8 changes: 8 additions & 0 deletions test/index.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
var assert = require('assert');
var startup = require('../');

describe('electron-squirrel-startup', function() {
it('should return false by default', function() {
assert.equal(startup, false);
});
});

0 comments on commit 9089db2

Please sign in to comment.