refactor: remove duplicate assignment in respond test (#1055)

Signed-off-by: Clark Du <clark.duxin@gmail.com>
This commit is contained in:
Clark Du 2017-09-11 12:22:34 -05:00 committed by jongleberry
parent 392e8aa90d
commit c161c0f2e9

View file

@ -544,7 +544,6 @@ describe('app.respond', () => {
ctx.length = fs.readFileSync('package.json').length; ctx.length = fs.readFileSync('package.json').length;
const stream = fs.createReadStream('package.json'); const stream = fs.createReadStream('package.json');
ctx.body = stream; ctx.body = stream;
ctx.body = stream;
ctx.set('Content-Type', 'application/json; charset=utf-8'); ctx.set('Content-Type', 'application/json; charset=utf-8');
}); });