blob: 9d25d0f6d3608753b5b1a0c1a00cd9846bb695ee (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
var MatchPattern = require("match-pattern").MatchPattern;
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");
};
//vim: set ts=2 et sw=2 textwidth=80:
|