Skip to content

Commit

Permalink
test(wallaby): Add polyfills to wallaby
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberhck committed Jan 19, 2017
1 parent a283de9 commit c23f2a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion wallaby.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
module.exports = function (wallaby) {
return {
bootstrap: function() {
global.fetch = require('node-fetch');
var fetch = require('node-fetch');
global.fetch = global.fetch || fetch;
global.Request = global.Request || fetch.Request;
global.Response = global.Response || fetch.Response;
},
files: [
'src/**/*.ts',
Expand Down

0 comments on commit c23f2a4

Please sign in to comment.