diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/unit/index.js | 4 | ||||
| -rw-r--r-- | test/unit/karma.conf.js | 11 |
2 files changed, 9 insertions, 6 deletions
diff --git a/test/unit/index.js b/test/unit/index.js index 642099db..83a2dcdb 100644 --- a/test/unit/index.js +++ b/test/unit/index.js @@ -1,7 +1,3 @@ -// Polyfill fn.bind() for PhantomJS -/* eslint-disable no-extend-native */ -Function.prototype.bind = require('function-bind') - // require all test files (files that ends with .spec.js) const testsContext = require.context('./specs', true, /\.spec$/) testsContext.keys().forEach(testsContext) diff --git a/test/unit/karma.conf.js b/test/unit/karma.conf.js index 8b4145e2..8465523a 100644 --- a/test/unit/karma.conf.js +++ b/test/unit/karma.conf.js @@ -53,11 +53,18 @@ module.exports = function (config) { // 1. install corresponding karma launcher // http://karma-runner.github.io/0.13/config/browsers.html // 2. add it to the `browsers` array below. - browsers: ['PhantomJS'], + browsers: ['FirefoxHeadless'], frameworks: ['mocha', 'sinon-chai'], reporters: ['mocha'], + customLaunchers: { + 'FirefoxHeadless': { + base: 'Firefox', + flags: [ + '-headless', + ] + } + }, files: [ - '../../node_modules/@babel/polyfill/dist/polyfill.js', './index.js' ], preprocessors: { |
