Skip to content

Commit d2db7f5

Browse files
committed
Update test spec for node 7.
1 parent 15f292f commit d2db7f5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/spec/instanceof.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ describe("async-validate:", function() {
2121
var schema = new Schema(anonymous);
2222
schema.validate({instance: []}, function(err, res) {
2323
expect(res.errors.length).to.eql(1);
24-
expect(res.errors[0].message).to.eql(
25-
'instance is not an instance of function (anonymous)');
24+
expect(
25+
/instance is not an instance of/.test(res.errors[0].message))
26+
.to.eql(true)
2627
done();
2728
});
2829
});

0 commit comments

Comments
 (0)