Skip to content

Commit

Permalink
Update test/browser-fixtures.test.js
Browse files Browse the repository at this point in the history
Add comment to explain use of isomorphic fetch for global fetch

Co-authored-by: Alexander Wunschik <dev@wunschik.net>
  • Loading branch information
DanMHammer and mojoaxel authored Aug 4, 2021
1 parent 2ef45a1 commit 73b0e48
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/browser-fixtures.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
const path = require('path')
const fs = require('fs-extra')
const pdfDiff = require('pdf-diff')

/* add a global `windows.fetch` function that is compatible with the browser's fetch API. */
global.fetch = require('isomorphic-fetch')

const PDFMerger = require('../browser')
Expand Down

0 comments on commit 73b0e48

Please sign in to comment.