Skip to content

Commit

Permalink
Replace karma-polyfill with core-js
Browse files Browse the repository at this point in the history
  • Loading branch information
borodean committed Feb 13, 2020
1 parent 5e326a7 commit b672cbb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ module.exports = config => {
debug: true
},
files: ['test/*'],
frameworks: ['browserify', 'chai', 'mocha', 'polyfill', 'sinon'],
polyfill: ['Promise'],
frameworks: ['browserify', 'chai', 'mocha', 'sinon'],
preprocessors: {
'test/*': ['browserify']
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
"@rollup/plugin-commonjs": "^11.0.2",
"browserify": "^16.5.0",
"chai": "*",
"core-js": "^3.6.4",
"karma": "^4.4.1",
"karma-browserify": "^7.0.0",
"karma-chai": "^0.1.0",
"karma-mocha": "^1.3.0",
"karma-polyfill": "^1.0.0",
"karma-sauce-launcher": "^1.2.0",
"karma-sinon": "^1.0.5",
"lodash": "^4.17.15",
Expand Down
2 changes: 2 additions & 0 deletions test/promise.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/* eslint-disable import/no-unassigned-import */
/* eslint-disable no-unused-expressions */
/* eslint-disable promise/prefer-await-to-then */

require('core-js/features/promise');
var _ = require('lodash');

var jsonp = require('../promise');
Expand Down

0 comments on commit b672cbb

Please sign in to comment.