before( async function () { this.timeout( 30000 ); driver = await driverConfig.build(); return await driver.sleep( 2000 ); } );
before(function(done) { //start remote server var opts = { acceptorFactory: Server.TcpAcceptor, paths: paths, port: port, bufferMsg: true, interval: 30 }; gateway = Server.create(opts); gateway.start(); done(); });
before(function(done) { gateways = []; //start remote logger var item, opts; for(var i=0, l=serverList.length; i<l; i++) { item = serverList[i]; opts = { paths: records, port: item.port, context: {id: item.id} }; var gateway = Server.create(opts); gateways.push(gateway); gateway.start(); } done(); });
describe('client', function() { var gateways = []; before(function(done) { gateways = [];
before(function(done) { //start remote server var opts = { acceptorFactory: Server.WSAcceptor, paths: paths, port: port, bufferMsg: true, interval: 30 }; gateway = Server.create(opts); gateway.start(); done(); });
describe('Default', function () { var src = './test/fixtures/*.svg' var svgpack = new Svgpack(src) before(function (cb) { svgpack.init() cb() }) after(function (cb) { rimraf(svgpack.options.dest, cb) }) return filesCheck(src, svgpack.options) })
describe('fetchCoinContractMarketChart', function () { before(function (done) { var zrx = '0xe41d2489571d322189246dafa5ebde1f4699f498'; this.CoinGeckoClient.coins.fetchCoinContractMarketChart(zrx).then((data) => { this.data = data; done(); }); }); shared.shouldBeAValidRequest(); });
describe('exchangeRates', function () { describe('all', function () { before(function (done) { this.CoinGeckoClient.exchangeRates.all().then((data) => { this.data = data; done(); }); }); shared.shouldBeAValidRequest(); }); });
before('Init Cloudant Client', function() { cloudantUsername = process.env.CLOUDANT_USERNAME || null; cloudantPassword = process.env.CLOUDANT_PASSWORD || null; if( cloudantUsername === null) expect.fail('CLOUDANT_USERNAME env variable is required for this test'); if( cloudantPassword === null) expect.fail('CLOUDANT_PASSWORD env variable is required for this test'); cloudant = Cloudant({account: cloudantUsername, password: cloudantPassword}) })
describe('global', function () { before(function (done) { this.CoinGeckoClient.global().then((data) => { this.data = data; done(); }); }); shared.shouldBeAValidRequest(); });
before(async () => { phase = await helper.create('Phase', { id: uuid(), name: `phase${new Date().getTime()}`, // random name description: 'desc', isOpen: true, duration: 12 }) })
before(function () { return helpers.getReadyVault().then(function (vault) { myVault = vault; }); });
before(() => { // This will automatically create a default tenant loader not being // used in the test, which is OK. // A fresh tenant loader must be created for each test. Otherwise the // throttle mechanism will fail any tests that reuse the loader. setupTenantMode(config); });
describe('list', function () { before(function (done) { this.CoinGeckoClient.coins.list().then((data) => { this.data = data; done(); }); }); shared.shouldBeAValidRequest(); });
before(function () { return helpers.getReadyVault().then(function (vault) { myVault = vault; }); });