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

17 lines
277 B
JavaScript

'use strict';
const Koa = require('../..');
describe('app.toJSON()', function(){
it('should work', function(){
const app = new Koa();
const obj = app.toJSON();
obj.should.eql({
subdomainOffset: 2,
proxy: false,
env: 'test'
});
});
});