File: browser.env.js

package info (click to toggle)
node-cross-fetch 4.0.0%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 548 kB
  • sloc: javascript: 1,017; makefile: 122; sh: 50
file content (14 lines) | stat: -rw-r--r-- 368 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Enable mocha's bdd style
mocha.setup('bdd')

// Add chai's expect to the global scope
window.expect = chai.expect
window.assert = chai.assert

if (/globals=off/.test(location.search)) {
  // Delete native fetch api to force the polyfill installation for test purposes
  delete window.fetch
  delete window.Request
  delete window.Response
  delete window.Headers
}