PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/js-xdr/test/setup
Просмотр файла: node.js
require('babel-core/register');
global['XDR'] = require('../../src/index');
global.chai = require('chai');
global.sinon = require('sinon');
global.chai.use(require('sinon-chai'));
global.expect = global.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();
});
Выполнить команду
Для локальной разработки. Не используйте в интернете!