From 7d32cb2a546fb4d1873db81144799a907e318911 Mon Sep 17 00:00:00 2001 From: Sean Tymon Date: Mon, 23 May 2016 22:40:24 +0100 Subject: [PATCH] fixing tests --- config.js | 6 +++--- gulpfile.babel.js | 4 +++- package.json | 1 + test/karma.conf.js | 2 +- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/config.js b/config.js index 141608c..3dbef6f 100644 --- a/config.js +++ b/config.js @@ -2,12 +2,12 @@ export default { paths: { - output : 'dist', + output: 'dist', vendor: [ 'node_modules/angular/angular.js', 'node_modules/angular-mocks/angular-mocks.js' ], - scripts : [ + scripts: [ 'src/angular-locker.js' ], test: [ @@ -26,4 +26,4 @@ export default { } }, banner: '/*! <%= pkg.name %> v<%= pkg.version %> | (c) ${new Date().getFullYear()} <%= pkg.author %> | <%= pkg.homepage %> */\n' -}; \ No newline at end of file +}; diff --git a/gulpfile.babel.js b/gulpfile.babel.js index 2ba994c..8bf623a 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -23,7 +23,9 @@ gulp.task('scripts', ['clean'], fizzy('scripts', { // Run the tests gulp.task('test', fizzy('test', { - src: paths.vendor.concat(paths.scripts, paths.test), + src: paths.vendor + .concat(['./node_modules/phantomjs-polyfill/bind-polyfill.js']) + .concat(paths.scripts, paths.test), karmaConfigFile: paths.karma })); diff --git a/package.json b/package.json index 0d792e4..8f3dba8 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ "karma-phantomjs-launcher": "^0.1.4", "karma-sauce-launcher": "^0.2.10", "karma-spec-reporter": "0.0.13", + "phantomjs-polyfill": "0.0.2", "run-sequence": "^1.1.3" }, "main": "src/angular-locker.js", diff --git a/test/karma.conf.js b/test/karma.conf.js index 17d8623..da9d347 100644 --- a/test/karma.conf.js +++ b/test/karma.conf.js @@ -77,4 +77,4 @@ module.exports = function (config) { } } }); -}; \ No newline at end of file +};