koa-lite/test/application/toJSON.js
2017-05-11 11:30:32 +08:00

18 lines
310 B
JavaScript

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