UNPKG

@tangany/waas

Version:

node.js SDK for Tangany Wallet as a Service API

18 lines 538 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.sandbox = void 0; var sinon_1 = require("sinon"); /** * setup mocha to use sandbox on each test. Tear down and reinitialise the sandbox after each suite. * @deprecated use for testing only */ var sandbox = function () { beforeEach(function () { this.sandbox = (0, sinon_1.createSandbox)({}); }); afterEach(function () { this.sandbox.restore(); }); }; exports.sandbox = sandbox; //# sourceMappingURL=spec-helpers.js.map