From: colin-marshall Date: Tue, 12 Jan 2016 19:53:35 +0000 (-0700) Subject: Added gulp-mocha, removed bootcamp X-Git-Tag: v6.1.2~68^2~7^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F7856%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Added gulp-mocha, removed bootcamp --- diff --git a/gulp/test.js b/gulp/test.js index f2cd4e222..b092dea23 100644 --- a/gulp/test.js +++ b/gulp/test.js @@ -1,19 +1,13 @@ var gulp = require('gulp'); var opener = require('opener'); -var rubySass = require('gulp-ruby-sass'); +var mocha = require('gulp-mocha'); // Runs unit tests gulp.task('test', ['test:sass', 'test:javascript']); gulp.task('test:sass', function() { - return rubySass('./test/sass/tests.scss', { - loadPath: ['scss', 'node_modules/bootcamp/dist'], - style: 'nested', - quiet: true - }) - .on('data', function(data) { - console.log(data.contents.toString()); - }); + return gulp.src('./test/sass/test_sass.js', {read: false}) + .pipe(mocha()); }); gulp.task('test:javascript', function(cb) { diff --git a/package.json b/package.json index 66b323f62..200336d9f 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,6 @@ }, "license": "MIT", "devDependencies": { - "bootcamp": "^1.1.7", "browser-sync": "^2.8.2", "clipboard": "^1.5.5", "corejs-typeahead": "corejavascript/typeahead.js", @@ -30,6 +29,7 @@ "gulp-jshint": "^1.9.2", "gulp-load-plugins": "^0.8.0", "gulp-minify-css": "^1.2.1", + "gulp-mocha": "^2.2.0", "gulp-newer": "^1.1.0", "gulp-plumber": "^1.0.1", "gulp-prompt": "^0.1.2",