Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Commit

Permalink
test(download): Special characters fix #17
Browse files Browse the repository at this point in the history
  • Loading branch information
soyuka committed Aug 25, 2015
1 parent 4650552 commit 8b74440
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/api/tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,12 @@ describe('tree', function() {
.end(cb)
})

it('should download a file', function(cb) {
this.request.get('/download?path=\'[special,]')
.expect('Content-disposition', /'\[special,\]/)
.end(cb)
})

it('should fail downloading an inexistant file', function(cb) {
this.request.get('/download?path=somenonexistantpath')
.expect(500)
Expand Down
Empty file added test/fixtures/tree/'[special,]
Empty file.

0 comments on commit 8b74440

Please sign in to comment.