Permalink
Browse files

added test get with special character in file name

Added test case to include special characters in file name
  • Loading branch information...
1 parent ab6850c commit c8d7f92c6c1befdbaed24238bf19f772aa2c3599 @satb committed Jan 10, 2014
Showing with 7 additions and 0 deletions.
  1. +7 −0 test/knox.test.js
View
7 test/knox.test.js
@@ -359,6 +359,13 @@ function runTestsForStyle(style, userFriendlyName) {
}).end();
});
+ it('should work with special characters in file name', function (done) {
+ client.get('test/abc+def.txt').on('response', function (res) {
+ assert.equal(res.statusCode, 200);
+ done();
+ }).end();
+ });
+
it('should give a 404 for the file not found', function (done) {
client.get('/test/whatever').on('response', function (res) {
assert.equal(res.statusCode, 404);

0 comments on commit c8d7f92

Please sign in to comment.