diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..dad5bf6 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,8 @@ +sudo: false +language: node_js +node_js: + - 6 +script: npm run ci +cache: + directories: + - node_modules diff --git a/package.json b/package.json index 80e3797..f566db2 100644 --- a/package.json +++ b/package.json @@ -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": [ @@ -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": [ diff --git a/test/index.test.js b/test/index.test.js new file mode 100644 index 0000000..6d629f6 --- /dev/null +++ b/test/index.test.js @@ -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); + }); +});