PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/js-xdr/test/setup
Просмотр файла: browser.js
window.chai = require('chai');
window.sinon = require('sinon');
window.chai.use(require('sinon-chai'));
window.expect = window.chai.expect;
beforeEach(function() {
this.sandbox = global.sinon.sandbox.create();
global.stub = this.sandbox.stub.bind(this.sandbox);
global.spy = this.sandbox.spy.bind(this.sandbox);
});
afterEach(function() {
delete global.stub;
delete global.spy;
this.sandbox.restore();
});
Выполнить команду
Для локальной разработки. Не используйте в интернете!