Skip to content

Commit 266b9da

Browse files
committed
Disable obsolete regexp test.
1 parent 1390cd8 commit 266b9da

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

test/spec/regexp.js

+12-11
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,18 @@ var expect = require('chai').expect
44

55
describe("async-validate:", function() {
66

7-
it("should error on regexp string (positive lookbehind unsupported)",
8-
function(done) {
9-
var schema = new Schema(descriptor)
10-
, source = {re: "(?<=(category=))[a-z-]+"};
11-
schema.validate(source, function(err, res) {
12-
expect(res.errors.length).to.eql(1);
13-
expect(res.errors[0].message).to.eql('re is not a valid regexp');
14-
done();
15-
});
16-
}
17-
);
7+
// NOTE: positive lookbehind is supported in recent versions of node
8+
//it("should error on regexp string (positive lookbehind unsupported)",
9+
//function(done) {
10+
//var schema = new Schema(descriptor)
11+
//, source = {re: "(?<=(category=))[a-z-]+"};
12+
//schema.validate(source, function(err, res) {
13+
//expect(res.errors.length).to.eql(1);
14+
//expect(res.errors[0].message).to.eql('re is not a valid regexp');
15+
//done();
16+
//});
17+
//}
18+
//);
1819

1920
it("should validate valid regexp string", function(done) {
2021
var schema = new Schema(descriptor);

0 commit comments

Comments
 (0)