Skip to content
This repository has been archived by the owner on Oct 7, 2019. It is now read-only.

Commit

Permalink
Update gulp file for updated karma API
Browse files Browse the repository at this point in the history
  • Loading branch information
klaascuvelier committed Jul 20, 2015
1 parent 1d54ba1 commit 8a4ec4c
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

var gulp = require('gulp');
var karma = require('karma').server;
var karma = require('karma');
var jshint = require('gulp-jshint');
var rename = require('gulp-rename');
var uglify = require('gulp-uglify');
Expand All @@ -16,10 +16,15 @@ var config = {

// Run karma unit tests
gulp.task('karma', function (done) {
karma.start({
configFile: config.test,
singleRun: true
}, done);
var server = new karma.Server(
{
configFile: config.test,
singleRun: true
},
done
);

server.start();
});

// JSHint the source files
Expand Down

0 comments on commit 8a4ec4c

Please sign in to comment.