How to use the faux-jax.restore function in faux-jax

To help you get started, we’ve selected a few faux-jax 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 algolia / algoliasearch-client-javascript / test / spec / browser / jquery.js View on Github external
index.search('jquery-timeout-promise').then(function searchDone(content) {
    fauxJax.restore();

    t.deepEqual(
      content, {
        yaw: 'JQUERY! timeout'
      },
      'Content matches'
    );
  });
github algolia / algoliasearch-client-javascript / test / spec / browser / angular.js View on Github external
index.search('angular-first').then(function searchDone(content) {
        fauxJax.restore();

        t.deepEqual(
          content, {
            message: 'YEAH!'
          },
          'Content matches'
        );
      });

faux-jax

Intercept and respond to requests in the browser (XMLHttpRequest, XDomainRequest) and Node.js (http(s) module)

MIT
Latest version published 8 years ago

Package Health Score

48 / 100
Full package analysis

Popular faux-jax functions