koa-lite/test/context/inspect.js
2015-10-13 09:23:57 +02:00

13 lines
270 B
JavaScript

'use strict';
const context = require('../helpers/context');
describe('ctx.inspect()', function(){
it('should return a json representation', function(){
const ctx = context();
const toJSON = ctx.toJSON(ctx);
toJSON.should.eql(ctx.inspect());
});
});