[Pkg-javascript-commits] [node-mocks-http] 77/296: test for default 302 statusCode on redirect

Thorsten Alteholz alteholz at moszumanska.debian.org
Mon Feb 8 18:13:23 UTC 2016


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

alteholz pushed a commit to branch master
in repository node-mocks-http.

commit 5b151f8398f8e200722742f9872ca05c4ed81d4b
Author: Johnny Estilles <johnny.estilles at agentia.asia>
Date:   Sat Feb 28 21:23:31 2015 +0800

    test for default 302 statusCode on redirect
---
 test/test-mockResponse.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/test-mockResponse.js b/test/test-mockResponse.js
index 5a83b0a..b4a4462 100644
--- a/test/test-mockResponse.js
+++ b/test/test-mockResponse.js
@@ -222,6 +222,7 @@ exports['redirect - Redirect to a url without response code'] = function (test)
   var url = '/index';
   response.redirect(url);
   test.equal(response._getRedirectUrl(), url);
+  test.equal(response._getStatusCode(), 302);
   test.done();
 };
 

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



More information about the Pkg-javascript-commits mailing list