UNPKG

actionhero

Version:

actionhero.js is a multi-transport API Server with integrated cluster capabilities and delayed tasks

34 lines (28 loc) 732 B
'use strict' var chai = require('chai') var dirtyChai = require('dirty-chai') var expect = chai.expect chai.use(dirtyChai) let path = require('path') var ActionheroPrototype = require(path.resolve(__dirname, '..', '..', 'actionhero.js')) var actionhero = new ActionheroPrototype() var multiAction = require('./multiAction.js.helper') var api describe('Benchmarks', () => { before((done) => { actionhero.start((error, a) => { expect(error).to.be.null() api = a done() }) }) after((done) => { actionhero.stop(done) }) it('debug', (done) => { multiAction(api, 'debug', 1000, {}, (durationSeconds, response) => { // console.log(response) done() }) }).timeout(20000) })