diff options
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 |