From 2447e31a804eb7d7fe5ef01b974cba3b615e0594 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Mon, 31 May 2010 19:03:04 +0200 Subject: First attempt to split main script into modules. --- tests/test-util.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tests/test-util.js (limited to 'tests/test-util.js') 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"); +}; + -- cgit