[Pkg-javascript-commits] [node-mocks-http] 81/296: updated mockResponse tests to check for default statusCode equal to 200

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 91efe5587d8e27467105ed30df99956cdce6fa42
Author: Johnny Estilles <johnny.estilles at agentia.asia>
Date:   Tue Mar 3 06:05:04 2015 +0800

    updated mockResponse tests to check for default statusCode equal to 200
---
 test/test-mockResponse.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/test-mockResponse.js b/test/test-mockResponse.js
index 5a83b0a..af8d5da 100644
--- a/test/test-mockResponse.js
+++ b/test/test-mockResponse.js
@@ -20,7 +20,7 @@ exports['object - Simple verification'] = function (test) {
 
 exports['object - Data Initialization'] = function (test) {
   var response = httpMocks.createResponse();
-  test.equal(-1, response.statusCode);
+  test.equal(200, response.statusCode);
   test.equal("", response._getData());
   test.ok(!response._isUTF8());
   test.ok(!response._isEndCalled());

-- 
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