diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-04-28 13:28:55 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-06-05 14:47:40 +0200 |
commit | 55d9a312fbba91f1bcf5e3f3291b7bece8abb178 (patch) | |
tree | bb9ef165b425273da47aa000268395f87f26678e /tests/test-match-pattern.js | |
parent | 34bbe8e7306a0d0ec014db7512788ed92c625d19 (diff) | |
download | bugzilla-triage-55d9a312fbba91f1bcf5e3f3291b7bece8abb178.tar.gz |
Reformatting to MoFo coding style
Diffstat (limited to 'tests/test-match-pattern.js')
-rw-r--r-- | tests/test-match-pattern.js | 20 |
1 files changed, 12 insertions, 8 deletions
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"); }; |