1 | module.exports = require('should');
|
2 |
|
3 | process.env.NODE_ENV = 'test';
|
4 |
|
5 | if (!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 |
|
15 | global.getApp = function() {
|
16 | var app = require('../').createServer()
|
17 | app.enable('quiet');
|
18 | return app;
|
19 | };
|