Skip to content

Commit bbb21f0

Browse files
committed
alter tests for redocly
1 parent 93a8c24 commit bbb21f0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/unit/openAPIGenerator.spec.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,12 @@ describe("OpenAPIGenerator", () => {
187187
const validOpenAPIDocument = await openAPIGenerator
188188
.generationAndValidation()
189189
.catch((err) => {
190-
expect(err.message).to.be.equal(
191-
"AssertionError: Templated parameter name not found"
190+
// expect(err.message).to.be.equal(
191+
// `Error validating OpenAPI Description:\r\nThe operation does not define the path parameter \`{name}\` expected by path \`/find/{name}\`.`
192+
// );
193+
expect(err).to.have.property("message");
194+
expect(err.message).to.include(
195+
"Error validating OpenAPI Description:"
192196
);
193197
});
194198

0 commit comments

Comments
 (0)