From 68892597fd98b7e0df432d6fe73d62e59fee808c Mon Sep 17 00:00:00 2001 From: Christopher Rose Date: Sun, 26 May 2019 21:18:35 +0530 Subject: [PATCH] Add test --- test.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test.js b/test.js index c2bcdaf..e18d646 100644 --- a/test.js +++ b/test.js @@ -36,4 +36,10 @@ describe('Page Status',()=>{ done() }) }) + it('POST and try to download a directory',done=>{ + chai.request(testScript).get('/files/cat').query({loc:'.'}).end((err,res)=>{ + res.should.have.status(500) + done() + }) + }) }) \ No newline at end of file