Skip to content

Commit

Permalink
fix error message check (#3297)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eomm committed Sep 6, 2021
1 parent 02d17b0 commit 33290ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/schema-feature.test.js
Expand Up @@ -204,7 +204,7 @@ test('Should throw of the schema does not exists in output', t => {

fastify.ready(err => {
t.equal(err.code, 'FST_ERR_SCH_SERIALIZATION_BUILD')
t.equal(err.message, "Failed building the serialization schema for GET: /:id, due to error Cannot read property 'type' of undefined") // error from fast-json-strinfigy
t.match(err.message, /^Failed building the serialization schema for GET: \/:id, due to error Cannot read propert.*/) // error from fast-json-strinfigy
})
})

Expand Down

0 comments on commit 33290ee

Please sign in to comment.