aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test-match-pattern.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-04-28 13:28:55 +0200
committerMatěj Cepl <mcepl@redhat.com>2011-04-28 18:26:14 +0200
commit32af48e442a960b8c3f199f5ffad28a34590fcda (patch)
treec291cb97627bd2cfb65167347261d5ef8f521bfd /tests/test-match-pattern.js
parent2382ba19afc84e9b747a7981ebf72aaa704f08b6 (diff)
downloadbugzilla-triage-32af48e442a960b8c3f199f5ffad28a34590fcda.tar.gz
Reformatting to MoFo coding style
Diffstat (limited to 'tests/test-match-pattern.js')
-rw-r--r--tests/test-match-pattern.js20
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");
};