17 lines
251 B
JavaScript
17 lines
251 B
JavaScript
|
|
||
|
'use strict';
|
||
|
|
||
|
const koa = require('../..');
|
||
|
|
||
|
describe('app.toJSON()', function(){
|
||
|
it('should work', function(){
|
||
|
const app = koa();
|
||
|
const obj = app.toJSON();
|
||
|
|
||
|
obj.should.eql({
|
||
|
subdomainOffset: 2,
|
||
|
env: 'test'
|
||
|
});
|
||
|
})
|
||
|
})
|