Skip to content

Commit

Permalink
fix: tests update
Browse files Browse the repository at this point in the history
  • Loading branch information
v8tenko committed Oct 7, 2024
1 parent d11ba23 commit be3dad5
Show file tree
Hide file tree
Showing 15 changed files with 155 additions and 31 deletions.
6 changes: 5 additions & 1 deletion src/__snapshots__/basic.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -123,5 +123,9 @@ Base 200 response
</div>
<!-- markdownlint-disable-file -->
</div>"
</div>
[*Deprecated]: No longer supported, please use an alternative and newer version."
`;
12 changes: 10 additions & 2 deletions src/__snapshots__/combiners/allOf.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,11 @@ Base 200 response
</div>
<!-- markdownlint-disable-file -->
</div>"
</div>
[*Deprecated]: No longer supported, please use an alternative and newer version."
`;

exports[`allOf operator support renders single allOf 1`] = `
Expand Down Expand Up @@ -273,5 +277,9 @@ Cat class
</div>
<!-- markdownlint-disable-file -->
</div>"
</div>
[*Deprecated]: No longer supported, please use an alternative and newer version."
`;
6 changes: 5 additions & 1 deletion src/__snapshots__/combiners/complex.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -217,5 +217,9 @@ Cat class
</div>
<!-- markdownlint-disable-file -->
</div>"
</div>
[*Deprecated]: No longer supported, please use an alternative and newer version."
`;
18 changes: 15 additions & 3 deletions src/__snapshots__/combiners/oneOf.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,11 @@ Cat class
</div>
<!-- markdownlint-disable-file -->
</div>"
</div>
[*Deprecated]: No longer supported, please use an alternative and newer version."
`;

exports[`oneOf operator support renders filled 1`] = `
Expand Down Expand Up @@ -377,7 +381,11 @@ Cat class
</div>
<!-- markdownlint-disable-file -->
</div>"
</div>
[*Deprecated]: No longer supported, please use an alternative and newer version."
`;

exports[`oneOf operator support renders parameter 1`] = `
Expand Down Expand Up @@ -575,5 +583,9 @@ Cat class
</div>
<!-- markdownlint-disable-file -->
</div>"
</div>
[*Deprecated]: No longer supported, please use an alternative and newer version."
`;
12 changes: 10 additions & 2 deletions src/__snapshots__/constraints/default.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,11 @@ Amount of search results to show<br>
</div>
<!-- markdownlint-disable-file -->
</div>"
</div>
[*Deprecated]: No longer supported, please use an alternative and newer version."
`;
exports[`Default value constraints should process default constraints specified in schema objects 1`] = `
Expand Down Expand Up @@ -206,5 +210,9 @@ Role for the user being created
</div>
<!-- markdownlint-disable-file -->
</div>"
</div>
[*Deprecated]: No longer supported, please use an alternative and newer version."
`;
6 changes: 5 additions & 1 deletion src/__snapshots__/constraints/length.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -166,5 +166,9 @@ Pet name
</div>
<!-- markdownlint-disable-file -->
</div>"
</div>
[*Deprecated]: No longer supported, please use an alternative and newer version."
`;
6 changes: 5 additions & 1 deletion src/__snapshots__/description.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -158,5 +158,9 @@ Dog class
</div>
<!-- markdownlint-disable-file -->
</div>"
</div>
[*Deprecated]: No longer supported, please use an alternative and newer version."
`;
36 changes: 30 additions & 6 deletions src/__snapshots__/examples/array.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,11 @@ Base 200 response
</div>
<!-- markdownlint-disable-file -->
</div>"
</div>
[*Deprecated]: No longer supported, please use an alternative and newer version."
`;

exports[`openapi project with examples renders array + oneOf + allOf example 1`] = `
Expand Down Expand Up @@ -189,7 +193,11 @@ Base 200 response
</div>
<!-- markdownlint-disable-file -->
</div>"
</div>
[*Deprecated]: No longer supported, please use an alternative and newer version."
`;

exports[`openapi project with examples renders array + oneOf example 1`] = `
Expand Down Expand Up @@ -283,7 +291,11 @@ Base 200 response
</div>
<!-- markdownlint-disable-file -->
</div>"
</div>
[*Deprecated]: No longer supported, please use an alternative and newer version."
`;

exports[`openapi project with examples renders example field 1`] = `
Expand Down Expand Up @@ -368,7 +380,11 @@ Base 200 response
</div>
<!-- markdownlint-disable-file -->
</div>"
</div>
[*Deprecated]: No longer supported, please use an alternative and newer version."
`;

exports[`openapi project with examples renders infered example 1`] = `
Expand Down Expand Up @@ -468,7 +484,11 @@ Base 200 response
</div>
<!-- markdownlint-disable-file -->
</div>"
</div>
[*Deprecated]: No longer supported, please use an alternative and newer version."
`;

exports[`openapi project with examples renders nested arrays exmaple 1`] = `
Expand Down Expand Up @@ -570,5 +590,9 @@ Base 200 response
</div>
<!-- markdownlint-disable-file -->
</div>"
</div>
[*Deprecated]: No longer supported, please use an alternative and newer version."
`;
18 changes: 15 additions & 3 deletions src/__snapshots__/examples/base.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ Base 200 response
</div>
<!-- markdownlint-disable-file -->
</div>"
</div>
[*Deprecated]: No longer supported, please use an alternative and newer version."
`;

exports[`openapi project with examples renders example from allOf 1`] = `
Expand Down Expand Up @@ -165,7 +169,11 @@ Base 200 response
</div>
<!-- markdownlint-disable-file -->
</div>"
</div>
[*Deprecated]: No longer supported, please use an alternative and newer version."
`;

exports[`openapi project with examples renders example from oneOf 1`] = `
Expand Down Expand Up @@ -273,5 +281,9 @@ Base 200 response
</div>
<!-- markdownlint-disable-file -->
</div>"
</div>
[*Deprecated]: No longer supported, please use an alternative and newer version."
`;
12 changes: 10 additions & 2 deletions src/__snapshots__/hidden/endpointParameters.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ Access token
</div>
<!-- markdownlint-disable-file -->
</div>"
</div>
[*Deprecated]: No longer supported, please use an alternative and newer version."
`;

exports[`Endpoint parameter tables should not include parameters marked with \`x-hidden\` in the spec 1`] = `
Expand Down Expand Up @@ -143,5 +147,9 @@ Name for the requested star
</div>
<!-- markdownlint-disable-file -->
</div>"
</div>
[*Deprecated]: No longer supported, please use an alternative and newer version."
`;
6 changes: 5 additions & 1 deletion src/__snapshots__/hidden/objectProps.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,9 @@ Name of this star
</div>
<!-- markdownlint-disable-file -->
</div>"
</div>
[*Deprecated]: No longer supported, please use an alternative and newer version."
`;
12 changes: 10 additions & 2 deletions src/__snapshots__/objectPropertyOrder.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,11 @@ CCDM catalogue designation for this star
</div>
<!-- markdownlint-disable-file -->
</div>"
</div>
[*Deprecated]: No longer supported, please use an alternative and newer version."
`;

exports[`Property rows in tables describing object schemas are ordered lexicographically by default 1`] = `
Expand Down Expand Up @@ -231,5 +235,9 @@ Name of this star
</div>
<!-- markdownlint-disable-file -->
</div>"
</div>
[*Deprecated]: No longer supported, please use an alternative and newer version."
`;
12 changes: 10 additions & 2 deletions src/__snapshots__/parameterOrder.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,11 @@ Name for the requested star
</div>
<!-- markdownlint-disable-file -->
</div>"
</div>
[*Deprecated]: No longer supported, please use an alternative and newer version."
`;

exports[`Endpoint parameters in tables are ordered lexicographically by default 1`] = `
Expand Down Expand Up @@ -175,5 +179,9 @@ Name for the requested star
</div>
<!-- markdownlint-disable-file -->
</div>"
</div>
[*Deprecated]: No longer supported, please use an alternative and newer version."
`;
18 changes: 15 additions & 3 deletions src/__snapshots__/recursiveReferences.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,11 @@ Generated server url
</div>
<!-- markdownlint-disable-file -->
</div>"
</div>
[*Deprecated]: No longer supported, please use an alternative and newer version."
`;

exports[`Recursive references in schemas resulting in a trivial self-referential cycle are able to be handled by the includer 1`] = `
Expand Down Expand Up @@ -195,7 +199,11 @@ Generated server url
</div>
<!-- markdownlint-disable-file -->
</div>"
</div>
[*Deprecated]: No longer supported, please use an alternative and newer version."
`;

exports[`Recursive references in schemas where the cycle itself is not trivially referenced are able to be handled by the includer 1`] = `
Expand Down Expand Up @@ -284,5 +292,9 @@ Generated server url
</div>
<!-- markdownlint-disable-file -->
</div>"
</div>
[*Deprecated]: No longer supported, please use an alternative and newer version."
`;
6 changes: 5 additions & 1 deletion src/__snapshots__/required.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -159,5 +159,9 @@ Cat class
</div>
<!-- markdownlint-disable-file -->
</div>"
</div>
[*Deprecated]: No longer supported, please use an alternative and newer version."
`;

0 comments on commit be3dad5

Please sign in to comment.