describe('.register', () => { beforeEach(() => { enquirer = new Enquirer({ show: false }); });
beforeEach(function() { system = actors.createSystem({ test: true, additionalRequires: 'ts-node/register' }); return system.rootActor().then(rootActor0 => { rootActor = rootActor0; }); });
beforeEach(function() { if(!!ipc.of.auth_socket) { ipc.of.auth_socket.off('AUTH:STATUS', '*'); } if(!!ipc.of.nauth_socket) { ipc.of.nauth_socket.off('AUTH:STATUS', '*'); } });
beforeEach(() => { sendStub = sinon.stub(stubbedSMTPMailer, "send"); app = express(); app.use(require("body-parser").json()); app.use( "/", createApiRouter( resolveRouterOptions(stubbedSMTPMailer, templateRender) ) ); registryScope = nock(REGISTRY_URL); });
describe('api.use', () => { beforeEach(() => { lexer = new Lexer(); }); it('should call a plugin function with the lexer instance', cb => { lexer.use(function() { assert(this instanceof Lexer); cb(); }); }); });
beforeEach(async () => { await knex('humans').truncate() client.setDefaults() testMessages.location.humans.map(async (h) => { await controller.insertQuery('humans', h) }) })
beforeEach((done) => { process.env.NODE_ENV = 'development'; gasket = { exec: sinon.spy() }; PluginEngine = sinon.stub().returns(gasket); GasketCommand = proxyquire('../lib/command', { '@gasket/engine': PluginEngine }); done(); });
beforeEach(async () => { await copy(fixtures('paths'), fixtures('temp')) folders = readdir.sync(fixtures('temp/nested'), { filter, recursive: true, absolute: true }); folders.sort(); });
// Tests ===================================================================== beforeEach(function (done) { loadDefaults(); engine = new Kairos.Engine('01:30:30.123'); done(); });
beforeEach(() => { config = makeConfig(); client = new Eureka(config); sinon.stub(client, 'transformRegistry'); sinon.stub(client, 'handleDelta'); });
beforeEach(() => { pkg = ConfigBuilder.createPackageJson(); warnSpy = sinon.spy(pkg, 'warn'); consoleWarnStub = sinon.spy(console, 'warn'); });
beforeEach(function(){ this.collection = new Backbone.Collection([ {name: 'jim', age: 18, postcode: 'NW6'}, {name: 'marry', age: 71, postcode: 'E2'}, {name: 'zach', age: 12, postcode: 'X54'}, {name: 'adam', age: 34, postcode: 'S5'}, ]) })
beforeEach(async () => { system = actors.createSystem(systemConfig); remoteSystem = actors.createSystem(systemConfig); rootActor = await system.rootActor(); return remoteSystem.listen(); });
beforeEach(function() { system = actors({ test: true, additionalRequires: 'ts-node/register' }); return system.rootActor().then(rootActor0 => { rootActor = rootActor0; }); });
beforeEach(function () { system = actors.createSystem({test: true}); return system.rootActor().then(rootActor0 => { rootActor = rootActor0; }); });