aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
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");
+};
+