18 lines
310 B
JavaScript
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);
|
|
});
|
|
});
|