UNPKG

soother

Version:

Standalone test dummies, stubs, mocks, fakes and spies for JavaScript. Works with any unit testing framework.

11 lines (7 loc) 312 B
const { fakeXMLHttpRequest } = require('./lib/fakeAjax'); const { moduleSoother } = require('./lib/moduleSoother'); const Soother = require('./lib/soother'); // Mixin's Soother.prototype.fakeXMLHttpRequest = fakeXMLHttpRequest; Soother.prototype.moduleSoother = moduleSoother; module.exports = new Soother();