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