aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2019-04-24 21:53:51 +0300
committerHenry Jameson <me@hjkos.com>2019-04-24 21:53:51 +0300
commit2b5cf61a8f9a84467495721f170df7ae1288959b (patch)
treebde66486ba547e8df8ad0897c9992fb1de4f0f5c /test
parentfd171da0dc6ee8404278ba4083a28cc01d724040 (diff)
firefox
Diffstat (limited to 'test')
-rw-r--r--test/unit/index.js4
-rw-r--r--test/unit/karma.conf.js11
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: {