Skip to content

Commit

Permalink
include babel-polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
pcardune committed Dec 2, 2015
1 parent b4ce65f commit 83a1860
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ module.exports = function(config) {

// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: [ envConfig.isCI ? 'PhantomJS' : envConfig.devBrowser ],
browsers: [ envConfig.isCI ? 'ChromeTravisCI' : envConfig.devBrowser ],
customLaunchers: {
ChromeTravisCI: {
base: 'Chrome',
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"babel-core": "^6.1.21",
"babel-eslint": "^4.1.5",
"babel-loader": "^6.1.0",
"babel-polyfill": "^6.2.0",
"babel-preset-es2015": "^6.1.18",
"codemirror": "^5.8.0",
"coveralls": "^2.11.4",
Expand All @@ -23,8 +24,10 @@
"karma-coverage": "^0.5.3",
"karma-coveralls": "^1.1.2",
"karma-jasmine": "^0.3.6",
"karma-phantomjs-launcher": "^0.2.1",
"karma-sourcemap-loader": "^0.3.6",
"karma-webpack": "^1.7.0",
"phantomjs": "^1.9.19",
"pretty-js": "^0.1.8",
"style-loader": "^0.13.0",
"webpack": "^1.12.6",
Expand Down
3 changes: 3 additions & 0 deletions spec/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// *Some* environments (phantomjs) don't have es5 (Function.prototype.bind)
require('babel-polyfill');

// require all the files in the spec folder that end with -test.js
var context = require.context('.', false, /.*-test.js$/);
context.keys().forEach(context);

0 comments on commit 83a1860

Please sign in to comment.