strapi/test/application/toJSON.js

17 lines
287 B
JavaScript
Raw Normal View History

2015-10-16 15:47:17 +02:00
'use strict';
const Koa = require('../..').server;
describe('app.toJSON()', function () {
it('should work', function () {
const app = new Koa();
const obj = app.toJSON();
obj.should.eql({
subdomainOffset: 2,
2015-11-09 15:27:39 +01:00
proxy: false,
2015-10-16 15:47:17 +02:00
env: 'test'
});
});
});