From 2a16426afe87338bb83bc1eb64d57335656e33d9 Mon Sep 17 00:00:00 2001 From: Avindra Goolcharan Date: Mon, 17 Oct 2016 11:45:06 -0400 Subject: [PATCH] nit: fix grammar in generator deprecation warning (#834) This fixes the tense of `will been` to `will be` --- lib/application.js | 2 +- test/application/use.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/application.js b/lib/application.js index d0ceba0..cd8a85e 100644 --- a/lib/application.js +++ b/lib/application.js @@ -105,7 +105,7 @@ module.exports = class Application extends Emitter { use(fn) { if (typeof fn !== 'function') throw new TypeError('middleware must be a function!'); if (isGeneratorFunction(fn)) { - deprecate('Support for generators will been removed in v3. ' + + deprecate('Support for generators will be removed in v3. ' + 'See the documentation for examples of how to convert old middleware ' + 'https://github.com/koajs/koa/tree/v2.x#old-signature-middleware-v1x---deprecated'); fn = convert(fn); diff --git a/test/application/use.js b/test/application/use.js index 29daef3..e9835de 100644 --- a/test/application/use.js +++ b/test/application/use.js @@ -113,7 +113,7 @@ describe('app.use(fn)', () => { it('should output deprecation message for generator functions', done => { process.once('deprecation', message => { - assert(/Support for generators will been removed/.test(message)); + assert(/Support for generators will be removed/.test(message)); done(); });