Skip to content

Commit b67af87

Browse files
committed
Fix test
1 parent 71fb75a commit b67af87

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/spec.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -1266,8 +1266,10 @@ module.exports = function (options) {
12661266
done(new Error('Saved with PAIS=X'))
12671267
})
12681268
.catch(function (error) {
1269-
expect(error.name).to.not.equal('EntityError') // not sync
1270-
expect(error.message).to.equal('pais cant be X')
1269+
expect(error.name).to.equal('EntityError')
1270+
expect(error.errors).to.be.a('array')
1271+
expect(error.errors.length).to.equal(1)
1272+
expect(error.errors[0].path).to.equal('pais')
12711273
done()
12721274
})
12731275
.catch(function (error) {

0 commit comments

Comments
 (0)