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

14 lines
303 B
JavaScript

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