aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-07-25 21:08:29 +0200
committerMatěj Cepl <mcepl@redhat.com>2010-07-25 21:08:29 +0200
commit9f1bc2cfff3bfd7050c7dfd1c02954347923f643 (patch)
treeb9651bb8d54fe87bf94a1a18c9ba24bafb608eda /tests
parent2765f8e3fb9a008e681371357d88d9b636679b78 (diff)
downloadbugzilla-triage-9f1bc2cfff3bfd7050c7dfd1c02954347923f643.tar.gz
Add util.getParamsFromURL method and use it.
Including all tests.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-util.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/test-util.js b/tests/test-util.js
index fcf840c..f420bb4 100644
--- a/tests/test-util.js
+++ b/tests/test-util.js
@@ -199,11 +199,10 @@ exports.ensureGetParamsFromURL = function (test) {
}),
"simply compare result of bugzilla show_page URL");
test.assertEqual(JSON.stringify(util.getParamsFromURL("https://bugzilla.redhat.com/")),
- JSON.stringify(null),
+ JSON.stringify({}),
"URL without any parameters");
- test.assertEqual(JSON.stringify(util.getParamsFromURL("")),
- JSON.stringify(null),
- "no URL");
+ test.assertRaises(function () {util.getParamsFromURL("")},
+ "Missing URL value!", "No URL");
};
// testing util.getBugNo