[Pkg-javascript-commits] [node-mocks-http] 12/296: Added a 'query' parameter.
Thorsten Alteholz
alteholz at moszumanska.debian.org
Mon Feb 8 18:13:16 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 0f9760b019d8b69acea21b4fe880ecd6fc180b6a
Author: Howard Abrams <howard at cloud-eco.com>
Date: Thu Feb 23 18:06:00 2012 +0800
Added a 'query' parameter.
---
lib/mockRequest.js | 1 +
package.json | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/mockRequest.js b/lib/mockRequest.js
index 9ab4945..5a042b1 100644
--- a/lib/mockRequest.js
+++ b/lib/mockRequest.js
@@ -36,6 +36,7 @@ exports.createRequest = function(options) {
url : (options.url ) ? options.url : '',
params: (options.params) ? options.params : {},
body : (options.body ) ? options.body : {},
+ query : (options.query ) ? options.query : {},
/**
* Function: _setParameter
diff --git a/package.json b/package.json
index fa41588..d4c6df7 100644
--- a/package.json
+++ b/package.json
@@ -2,7 +2,7 @@
"author": "Howard Abrams <howard.abrams at gmail.com> (http://www.github.com/howardabrams)",
"name": "node-mocks-http",
"description": "Mock 'http' objects for testing Express routing functions",
- "version": "0.0.2",
+ "version": "0.0.3",
"homepage": "http://www.github.com/howardabrams/node-mocks-http",
"keywords": [
"mock",
--
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