koa-lite/test/application/inspect.js
2015-10-29 09:56:15 -07:00

14 lines
333 B
JavaScript

'use strict';
const assert = require('assert');
const Koa = require('../..');
describe('app.inspect()', function(){
it('should work', function(){
const app = new Koa();
const util = require('util');
const str = util.inspect(app);
assert.equal("{ subdomainOffset: 2, proxy: false, env: 'test' }", str);
});
});