diff --git a/test/application/use.js b/test/application/use.js index e9835de..ae87078 100644 --- a/test/application/use.js +++ b/test/application/use.js @@ -120,10 +120,4 @@ describe('app.use(fn)', () => { const app = new Koa(); app.use(function * (){}); }); - - it('should throw error for non function', () => { - const app = new Koa(); - - (() => app.use('not a function')).should.throw('middleware must be a function!'); - }); });