Skip to content

Commit

Permalink
more range tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Nov 12, 2011
1 parent a8a4f6f commit a487c74
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/static.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,15 @@ describe('connect.static()', function(){
.set('Range', 'bytes=0-4')
.expect(206, done);
})

describe('when syntactically invalid', function(){
it('should respond with 416 Request Range Not Satisfiable', function(done){
app.request()
.get('/nums')
.set('Range', 'bytes=4-0')
.expect(416, done);
})
})
})

// TODO: node bug
Expand Down

0 comments on commit a487c74

Please sign in to comment.