16 lines
255 B
JavaScript
16 lines
255 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'
|
|
});
|
|
})
|
|
})
|