Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding failing test for ..

  • Loading branch information...
commit 90cc076c8db74c932f1923e41ce333d2eb5c5e45 1 parent fa52e52
@tomgco tomgco authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 test/staticGzipTest.js
View
11 test/staticGzipTest.js
@@ -186,5 +186,16 @@ module.exports = {
res.statusCode.should.equal(404);
}
);
+ },
+ 'Ensuring you cannot traverse up the directory tree': function() {
+ assert.response(getApp(),
+ {
+ url: '/../prefexTest.js'
+ },
+ function(res) {
+ console.log(res.error);
+ res.statusCode.should.equal(403);
+ }
+ );
}
};
Please sign in to comment.
Something went wrong with that request. Please try again.