[Pkg-javascript-commits] [node-mocks-http] 75/296: fixed "path(pathname) has to be parsed from url" test. "request.path" should include leading slash.
Thorsten Alteholz
alteholz at moszumanska.debian.org
Mon Feb 8 18:13:22 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 da142110a43f9fee9785d149da8e327b8af6dd2e
Author: Johnny Estilles <johnny.estilles at agentia.asia>
Date: Sat Feb 28 16:21:28 2015 +0800
fixed "path(pathname) has to be parsed from url" test. "request.path" should include leading slash.
---
test/test-mockRequest.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/test-mockRequest.js b/test/test-mockRequest.js
index f3ce196..e08a878 100644
--- a/test/test-mockRequest.js
+++ b/test/test-mockRequest.js
@@ -202,7 +202,7 @@ exports['path(pathname) has to be parsed from url'] = function(test) {
url: 'http://www.whatever.com/iamthepath?a=1&b=2&c=3'
});
- test.equal(request.path, 'iamthepath');
+ test.equal(request.path, '/iamthepath');
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