summaryrefslogtreecommitdiff
path: root/test/parallel/test-url-parse-query.js
diff options
context:
space:
mode:
authorJustin Beckwith <justin.beckwith@gmail.com>2017-06-10 21:25:45 -0700
committerJames M Snell <jasnell@gmail.com>2017-06-13 12:25:19 -0700
commitc88ba036b46e56f11d56c4679adbd9ff66bce645 (patch)
tree80e286c9498f4081483da5310fa9ac528f43aaec /test/parallel/test-url-parse-query.js
parentadd4b0ab8cc0ec663cd4623e9032c14830873760 (diff)
downloadandroid-node-v8-c88ba036b46e56f11d56c4679adbd9ff66bce645.tar.gz
android-node-v8-c88ba036b46e56f11d56c4679adbd9ff66bce645.tar.bz2
android-node-v8-c88ba036b46e56f11d56c4679adbd9ff66bce645.zip
url: ensure search property is consistently null vs empty
PR-URL: https://github.com/nodejs/node/pull/13606 Fixes: https://github.com/nodejs/node/issues/13404 Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Diffstat (limited to 'test/parallel/test-url-parse-query.js')
-rw-r--r--test/parallel/test-url-parse-query.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-url-parse-query.js b/test/parallel/test-url-parse-query.js
index 34c31d8a3c..67682d0aad 100644
--- a/test/parallel/test-url-parse-query.js
+++ b/test/parallel/test-url-parse-query.js
@@ -36,7 +36,7 @@ const parseTestsWithQueryString = {
host: 'example.com',
hostname: 'example.com',
query: createWithNoPrototype(),
- search: '',
+ search: null,
pathname: '/',
path: '/'
},
@@ -48,7 +48,7 @@ const parseTestsWithQueryString = {
port: null,
hostname: null,
hash: null,
- search: '',
+ search: null,
query: createWithNoPrototype(),
pathname: '/example',
path: '/example',