koa-lite/test/application/toJSON.js

17 lines
255 B
JavaScript
Raw Normal View History

'use strict';
2015-10-13 06:19:42 +00:00
const Koa = require('../..');
describe('app.toJSON()', function(){
it('should work', function(){
2015-10-13 06:19:42 +00:00
const app = new Koa();
const obj = app.toJSON();
obj.should.eql({
subdomainOffset: 2,
env: 'test'
});
})
})