koa-lite/test/application/toJSON.js
2015-10-13 09:23:57 +02:00

16 lines
257 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,
env: 'test'
});
});
});