diff options
author | Matěj Cepl <mcepl@redhat.com> | 2010-07-25 21:08:29 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2010-07-25 21:08:29 +0200 |
commit | 9f1bc2cfff3bfd7050c7dfd1c02954347923f643 (patch) | |
tree | b9651bb8d54fe87bf94a1a18c9ba24bafb608eda /tests | |
parent | 2765f8e3fb9a008e681371357d88d9b636679b78 (diff) | |
download | bugzilla-triage-9f1bc2cfff3bfd7050c7dfd1c02954347923f643.tar.gz |
Add util.getParamsFromURL method and use it.
Including all tests.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-util.js | 7 |
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 |