UNPKG

393 BJavaScriptView Raw
1module.exports = require('should');
2
3process.env.NODE_ENV = 'test';
4
5if (!process.env.TRAVIS) {
6 if (typeof __cov === 'undefined') {
7 process.on('exit', function () {
8 require('semicov').report();
9 });
10 }
11
12 require('semicov').init('lib');
13}
14
15global.getApp = function() {
16 var app = require('../').createServer()
17 app.enable('quiet');
18 return app;
19};