[Pkg-javascript-commits] [node-mocks-http] 171/296: fixed; mockResponse.render() not storing data, mockResponse.writable should not be a function

Thorsten Alteholz alteholz at moszumanska.debian.org
Mon Feb 8 18:13:33 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 8d8aca99c14f81f88592b03ecc7120a61fece379
Author: Johnny Estilles <johnny.estilles at agentia.asia>
Date:   Wed Apr 8 08:49:36 2015 +0800

    fixed; mockResponse.render() not storing data, mockResponse.writable should not be a function
---
 lib/mockResponse.js | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/lib/mockResponse.js b/lib/mockResponse.js
index 555c5c9..d288cc4 100644
--- a/lib/mockResponse.js
+++ b/lib/mockResponse.js
@@ -433,9 +433,6 @@ function createResponse(options) {
         switch (arguments.length) {
 
             case 2:
-                break;
-
-            case 3:
                 _renderData = b;
                 break;
 
@@ -449,9 +446,10 @@ function createResponse(options) {
 
     };
 
-    mockResponse.writable = function() {
-        return writableStream.writable.apply(this, arguments);
-    };
+    // WritableStream.writable is not a function
+    // mockResponse.writable = function() {
+    //     return writableStream.writable.apply(this, arguments);
+    // };
 
     // mockResponse.end = function(){
     //  return writableStream.end.apply(this, arguments);

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