aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-05-31 19:03:04 +0200
committerMatěj Cepl <mcepl@redhat.com>2010-05-31 19:03:04 +0200
commit2447e31a804eb7d7fe5ef01b974cba3b615e0594 (patch)
treef4487a9c0c10b476caa3c74f9871bd3e6617472d /tests
parent951ef0d578130106e303e5586f53404a900ccf9c (diff)
downloadbugzilla-triage-2447e31a804eb7d7fe5ef01b974cba3b615e0594.tar.gz
First attempt to split main script into modules.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-util.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test-util.js b/tests/test-util.js
new file mode 100644
index 0000000..5af8eee
--- /dev/null
+++ b/tests/test-util.js
@@ -0,0 +1,7 @@
+var util = require("util");
+
+exports.ensureGetHost = function(test) {
+ var uri = util.getHost("https://bugzilla.redhat.com/show_bug.cgi?id=597141");
+ test.assertEqual(uri, "bugzilla.redhat.com", "checking right hostname from URL");
+};
+