How to use the synchronous-promise.SynchronousPromise.installGlobally function in synchronous-promise

To help you get started, we’ve selected a few synchronous-promise 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 tus / tus-js-client / test / spec / upload.js View on Github external
beforeEach(function () {
      jasmine.Ajax.install();
      SynchronousPromise.installGlobally();

      // Clear localStorage before every test to prevent stored URLs to
      // interfere with our setup.
      if (isBrowser) {
        localStorage.clear();
      }
    });

synchronous-promise

Synchronous Promise-like prototype to use in testing where you would have used an ES6 Promise

BSD-3-Clause
Latest version published 1 year ago

Package Health Score

67 / 100
Full package analysis