From 55d9a312fbba91f1bcf5e3f3291b7bece8abb178 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Thu, 28 Apr 2011 13:28:55 +0200 Subject: Reformatting to MoFo coding style --- tests/test-match-pattern.js | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'tests/test-match-pattern.js') diff --git a/tests/test-match-pattern.js b/tests/test-match-pattern.js index 9e3d2bd..106937a 100644 --- a/tests/test-match-pattern.js +++ b/tests/test-match-pattern.js @@ -1,11 +1,15 @@ -var { MatchPattern } = require("match-pattern"); +var MatchPattern = require("match-pattern").MatchPattern; -exports.ensureMatchPattern = function (test) { - var pattern = new MatchPattern("https://bugzilla.redhat.com/attachment.cgi"); +exports.ensureMatchPattern = function(test) { + var pattern = new MatchPattern( + "https://bugzilla.redhat.com/attachment.cgi"); console.log("pattern = " + pattern); - test.assert(pattern. - test("https://bugzilla.redhat.com/attachment.cgi"), "testing match pattern"); - test.assert(!pattern. - test("https://bugzilla.redhat.com/attachment.cgi?bugid=676538&action=enter"), - "testing failing match pattern"); + test.assert(pattern + .test("https://bugzilla.redhat.com/attachment.cgi"), + "testing match pattern"); + test + .assert( + !pattern + .test("https://bugzilla.redhat.com/attachment.cgi?bugid=676538&action=enter"), + "testing failing match pattern"); }; -- cgit