diff --git a/lib/jsdoc/context.jsdoc b/lib/jsdoc/context.jsdoc index 5cf5c0f7c2..8d049ee308 100644 --- a/lib/jsdoc/context.jsdoc +++ b/lib/jsdoc/context.jsdoc @@ -40,72 +40,3 @@ * * 每页资源数目,如 `GET /api/users?per_page=20` => `20` */ - -/** - * 设置返回资源对象 - * @member {Object} Context#data= - * @example - * ```js - * ctx.data = { - * id: 1, - * name: 'fengmk2' - * }; - * ``` - * - * 会返回 200 响应 - * - * ```js - * HTTP/1.1 200 OK - * - * { - * "data": { - * "id": 1, - * "name": "fengmk2" - * } - * } - * ``` - */ - -/** - * 设置 meta 响应数据 - * @member {Object} Context#meta= - * @example - * ```js - * ctx.meta = { - * count: 100 - * }; - * - * ctx.data = [ - * { - * id: 1, - * title: 'post title 1' - * }, - * { - * id: 2, - * title: 'post title 2' - * } - * ]; - * ``` - * - * 会返回 200 响应 - * - * ```js - * HTTP/1.1 200 OK - * - * { - * "meta": { - * "count": 100 - * } - * "data": [ - * { - * "id": 1, - * "title": 'post title 1' - * }, - * { - * "id": 2, - * "title": 'post title 2' - * } - * ] - * } - * ``` - */ diff --git a/test/lib/plugins/development.test.js b/test/lib/plugins/development.test.js index 8701d8aac2..0dec795861 100644 --- a/test/lib/plugins/development.test.js +++ b/test/lib/plugins/development.test.js @@ -5,7 +5,6 @@ const path = require('path'); const request = require('supertest'); const pedding = require('pedding'); const mm = require('egg-mock'); -const sleep = require('mz-modules/sleep'); const utils = require('../../utils'); describe('test/lib/plugins/development.test.js', () => { @@ -66,17 +65,5 @@ describe('test/lib/plugins/development.test.js', () => { fs.writeFileSync(filepath, body); }); - it('should reload when file changed', function* () { - fs.writeFileSync(filepath, 'module.exports = function*() { this.body = \'change\'; };'); - // wait for app worker restart - - yield sleep(10000); - - yield request(app.callback()) - .get('/') - .expect('change'); - - app.expect('stdout', /app_worker#2:\d+ started/); - }); }); });