Skip to content

Commit

Permalink
fix(polyfill): Not using default export
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitri Kopriwa committed Jan 31, 2019
1 parent b9032a4 commit b01190d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -339,4 +339,4 @@
]
},
"contributors": []
}
}
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const defaultOptions = {
* // if you need fetch for node within test, just activate it
* require('@yeutech-lab/test-polyfill').polyfill({ isomorphicFetch: true })
*/
export default function polyfill(options) {
export function polyfill(options) {
const opts = { ...defaultOptions, ...options };
if (opts.isomorphicFetch) {
const Tough = require('tough-cookie');
Expand Down
2 changes: 1 addition & 1 deletion src/tests/index.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import polyfill from '../index';
import { polyfill } from '../index';

describe('polyfill', () => {
it('should polyfill fetch-mock', (done) => {
Expand Down

0 comments on commit b01190d

Please sign in to comment.