From ecfbaa27925548109486dbe6456d376e7890206e Mon Sep 17 00:00:00 2001 From: Stephen Cavaliere Date: Tue, 7 Oct 2014 19:12:18 -0500 Subject: [PATCH] More sprint 0 stuff --- gulpfile.js | 5 +++-- package.json | 7 +++++-- test/helpers/chai.js | 3 +++ test/helpers/sinon.js | 5 +++++ 4 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 test/helpers/sinon.js diff --git a/gulpfile.js b/gulpfile.js index fae8719..f3485f0 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -21,13 +21,14 @@ gulp.task('test', function mocha() { ui: 'bdd', reporter: 'spec', globals: { - testHelper: require('./test/helpers/chai') + testHelper: require('./test/helpers/chai'), + sinon: require('./test/helpers/sinon') }, growl: true })); }); -gulp.task('watch', [ 'lint', 'test' ], function watch() { +gulp.task('watch', function watch() { gulp.watch([ 'src/**/*.js', 'test/**/*.js' ], [ 'test' ]); gulp.watch([ 'src/**/*.js', 'test/**/*.js', 'config/**/*.js', 'gulpfile.js', 'server.js' ], [ 'lint' ]); }); diff --git a/package.json b/package.json index 0ee39de..6fd0c11 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,9 @@ "url": "git@github.com:PillarTechnology/roadsquirrel-api.git" }, "dependencies": { - "express": "^4.9.5" + "bookshelf": "^0.7.7", + "express": "^4.9.5", + "knex": "^0.7.3" }, "devDependencies": { "chai": "^1.9.1", @@ -26,6 +28,7 @@ "gulp-if": "^1.2.4", "gulp-load-plugins": "^0.6.0", "gulp-mocha": "^1.1.0", - "lodash": "^2.4.1" + "lodash": "^2.4.1", + "sinon": "^1.10.3" } } diff --git a/test/helpers/chai.js b/test/helpers/chai.js index 141d1b4..12736f3 100644 --- a/test/helpers/chai.js +++ b/test/helpers/chai.js @@ -1,2 +1,5 @@ +'use strict'; + var chai = require('chai'); + global.should = chai.should(); diff --git a/test/helpers/sinon.js b/test/helpers/sinon.js new file mode 100644 index 0000000..ee3c1da --- /dev/null +++ b/test/helpers/sinon.js @@ -0,0 +1,5 @@ +'use strict'; + +var sinon = require('sinon'); + +global.sinon = sinon;