How to use the fake-xml-http-request.call function in fake-xml-http-request

To help you get started, we’ve selected a few fake-xml-http-request examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pretenderjs / pretender / src / index.ts View on Github external
function FakeRequest() {
    // super()
    FakeXMLHttpRequest.call(this);
  }
  FakeRequest.prototype = Object.create(FakeXMLHttpRequest.prototype);
github pretenderjs / pretender / src / pretender.es.js View on Github external
function FakeRequest() {
        // super()
        FakeXMLHttpRequest.call(this);
    }
    FakeRequest.prototype = Object.create(FakeXMLHttpRequest.prototype);

fake-xml-http-request

test infrastructure for a fake XMLHttpRequest object

MIT
Latest version published 4 years ago

Package Health Score

59 / 100
Full package analysis