Skip to content
This repository has been archived by the owner on Mar 8, 2021. It is now read-only.

Commit

Permalink
fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tymondesigns committed May 23, 2016
1 parent a736b20 commit 7d32cb2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand All @@ -26,4 +26,4 @@ export default {
}
},
banner: '/*! <%= pkg.name %> v<%= pkg.version %> | (c) ${new Date().getFullYear()} <%= pkg.author %> | <%= pkg.homepage %> */\n'
};
};
4 changes: 3 additions & 1 deletion gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}));

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion test/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@ module.exports = function (config) {
}
}
});
};
};

0 comments on commit 7d32cb2

Please sign in to comment.