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