diff --git a/package.json b/package.json index 422caa613..a4b4d603c 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "scripts": { "start": "./bin/www", "lint": "eslint .", - "test": "mocha" + "pretest": "npm install", + "test": "mocha tests" }, "config": { "pre-git": { @@ -14,7 +15,9 @@ "pre-commit": [ "npm run lint" ], - "pre-push": [], + "pre-push": [ + "npm test" + ], "post-commit": [], "post-merge": [] } diff --git a/tests/index.js b/tests/index.js new file mode 100644 index 000000000..0a212b7a4 --- /dev/null +++ b/tests/index.js @@ -0,0 +1,12 @@ +/* eslint-env node, mocha */ +'use strict'; + +const expect = require('chai').expect; + +describe('Comment', () => { + describe.only('#add', () => { + it('should add a comment', () => { + expect(0).to.be.equal(0); + }); + }); +});