We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15f292f commit d2db7f5Copy full SHA for d2db7f5
test/spec/instanceof.js
@@ -21,8 +21,9 @@ describe("async-validate:", function() {
21
var schema = new Schema(anonymous);
22
schema.validate({instance: []}, function(err, res) {
23
expect(res.errors.length).to.eql(1);
24
- expect(res.errors[0].message).to.eql(
25
- 'instance is not an instance of function (anonymous)');
+ expect(
+ /instance is not an instance of/.test(res.errors[0].message))
26
+ .to.eql(true)
27
done();
28
});
29
0 commit comments