File tree 1 file changed +12
-11
lines changed
1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -4,17 +4,18 @@ var expect = require('chai').expect
4
4
5
5
describe ( "async-validate:" , function ( ) {
6
6
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
+ //);
18
19
19
20
it ( "should validate valid regexp string" , function ( done ) {
20
21
var schema = new Schema ( descriptor ) ;
You can’t perform that action at this time.
0 commit comments