From 9bdad8812c9e09f9119469c61dcf705b5daa2594 Mon Sep 17 00:00:00 2001 From: Manuel Spigolon Date: Mon, 6 Sep 2021 14:23:54 +0200 Subject: [PATCH] fix error message check --- test/schema-feature.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/schema-feature.test.js b/test/schema-feature.test.js index a18f486033..b36b25b1e6 100644 --- a/test/schema-feature.test.js +++ b/test/schema-feature.test.js @@ -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 }) })