Skip to content

Commit

Permalink
More sprint 0 stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
delasteve committed Oct 8, 2014
1 parent 4a5167a commit ecfbaa2
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
5 changes: 3 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' ]);
});
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
}
}
3 changes: 3 additions & 0 deletions test/helpers/chai.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
'use strict';

var chai = require('chai');

global.should = chai.should();
5 changes: 5 additions & 0 deletions test/helpers/sinon.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
'use strict';

var sinon = require('sinon');

global.sinon = sinon;

0 comments on commit ecfbaa2

Please sign in to comment.