Skip to content

Commit e0866e5

Browse files
committed
tests: add test for root path requirement
1 parent f3dde6e commit e0866e5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ describe('serveStatic()', function(){
1616
server = createServer();
1717
});
1818

19+
it('should require root path', function(){
20+
serveStatic.bind().should.throw(/root path required/);
21+
});
22+
1923
it('should serve static files', function(done){
2024
request(server)
2125
.get('/todo.txt')

0 commit comments

Comments
 (0)