From 265be1898d03e21d19ccb1a2a3d8d1003074f63b Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Wed, 2 Nov 2016 09:57:18 -0300 Subject: [PATCH] Adding mock test --- package.json | 7 +++++-- tests/index.js | 12 ++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 tests/index.js 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); + }); + }); +});