Skip to content

Commit

Permalink
Merge pull request #58 from AllenFang/feat/54
Browse files Browse the repository at this point in the history
fix #54: allow Promise to support Promise.finally
  • Loading branch information
jefflau authored May 16, 2018
2 parents 8d87222 + 45f365c commit b0bcac9
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 b0bcac9

Please sign in to comment.