nit: fix grammar in generator deprecation warning (#834)

This fixes the tense of `will been` to `will be`
master
Avindra Goolcharan 2016-10-17 11:45:06 -04:00 committed by Julian Gruber
parent ce78786f95
commit 2a16426afe
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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();
});