From 3721f6be0b84801bbdba492031e4ef8504a4bfc6 Mon Sep 17 00:00:00 2001 From: Martin Iwanowski Date: Thu, 13 Apr 2017 07:41:38 +0200 Subject: [PATCH] test: remove redudant test case (#956) --- test/application/use.js | 6 ------ 1 file changed, 6 deletions(-) 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!'); - }); });