Skip to content

Commit

Permalink
fix #54: allow Promise to support Promise.finally
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenFang committed Apr 1, 2018
1 parent 10009bd commit 45f365c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 16 deletions.
23 changes: 8 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
},
"homepage": "https://github.com/jefflau/jest-fetch-mock#readme",
"dependencies": {
"isomorphic-fetch": "^2.2.1"
"isomorphic-fetch": "^2.2.1",
"promise-polyfill": "^7.1.1"
},
"prettier": {
"semi": false,
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require('isomorphic-fetch')
const Promise = require('promise-polyfill');

const ActualResponse = Response

Expand Down

0 comments on commit 45f365c

Please sign in to comment.