[Pkg-javascript-commits] [node-static] 101/151: Test for malformed URI

Tonnerre Lombard tonnerre-guest at moszumanska.debian.org
Tue Jan 7 23:18:01 UTC 2014


This is an automated email from the git hooks/post-receive script.

tonnerre-guest pushed a commit to branch master
in repository node-static.

commit efcf0eb0ed841ecbac6d6014517fdb05411308ac
Author: Guy Bedford <guybedford at gmail.com>
Date:   Fri Feb 1 12:45:36 2013 +0200

    Test for malformed URI
---
 test/integration/node-static-test.js | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/test/integration/node-static-test.js b/test/integration/node-static-test.js
index c183c3e..67529be 100644
--- a/test/integration/node-static-test.js
+++ b/test/integration/node-static-test.js
@@ -79,6 +79,15 @@ suite.addBatch({
       }
     }
 }).addBatch({
+    'requesting a malformed URI': {
+      topic: function(){
+        request.get(TEST_SERVER + '/a%AFc', this.callback);
+      }
+      'should respond with 404': function(error, response, body){
+        assert.equal(response.statusCode, 404);
+      }
+    }
+}).addBatch({
   'serving hello.txt': {
     topic : function(){
       request.get(TEST_SERVER + '/hello.txt', this.callback);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-static.git



More information about the Pkg-javascript-commits mailing list