[Pkg-javascript-commits] [node-mocks-http] 142/296: added; mockRequest - ability to set `.signedCookies` via options

Thorsten Alteholz alteholz at moszumanska.debian.org
Mon Feb 8 18:13:30 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 976f8914e6f1d92190b72c467fa3543fb55edb2f
Author: Johnny Estilles <johnny.estilles at agentia.asia>
Date:   Tue Mar 24 12:13:29 2015 +0800

    added; mockRequest - ability to set `.signedCookies` via options
---
 lib/mockRequest.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/mockRequest.js b/lib/mockRequest.js
index a41f6ba..347c7cc 100644
--- a/lib/mockRequest.js
+++ b/lib/mockRequest.js
@@ -48,6 +48,9 @@ function createRequest(options) {
         mockRequest.session = options.session;
     }
     mockRequest.cookies = (options.cookies) ? options.cookies : {};
+    if (options.signedCookies) {
+        mockRequest.signedCookies = options.signedCookies;
+    }
     mockRequest.headers = (options.headers) ? options.headers : {};
     mockRequest.body = (options.body) ? options.body : {};
     mockRequest.query = (options.query) ? options.query : {};

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