koa-lite/test/application/inspect.js

15 lines
325 B
JavaScript
Raw Normal View History

'use strict';
const assert = require('assert');
2015-10-13 06:19:42 +00:00
const Koa = require('../..');
describe('app.inspect()', () => {
it('should work', () => {
2015-10-13 06:19:42 +00:00
const app = new Koa();
const util = require('util');
const str = util.inspect(app);
assert.equal("{ subdomainOffset: 2, proxy: false, env: 'test' }", str);
2015-10-12 20:36:41 +00:00
});
});