Skip to content

Commit 1c5eb9d

Browse files
committed
test: remove commented-out assertion block
1 parent 67ddce9 commit 1c5eb9d

1 file changed

Lines changed: 0 additions & 30 deletions

File tree

test/multipart-ajv-file.test.js

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -52,36 +52,6 @@ test("show modify the generated schema", async (t) => {
5252

5353
await fastify.ready();
5454

55-
/**
56-
* Only verify ajvFilePlugin's core behavior: transforming { isFile: true }
57-
* into { type: 'string', format: 'binary' }. The full paths assertion is
58-
* commented out because @fastify/swagger v9.7.0 introduced
59-
* requestBody.required (fastify/fastify-swagger#903), making the exact
60-
* shape version-dependent.
61-
*/
62-
// t.assert.deepStrictEqual(fastify.swagger().paths, {
63-
// '/': {
64-
// post: {
65-
// operationId: 'test',
66-
// requestBody: {
67-
// required: true,
68-
// content: {
69-
// 'multipart/form-data': {
70-
// schema: {
71-
// type: 'object',
72-
// properties: {
73-
// field: { type: 'string', format: 'binary' }
74-
// }
75-
// }
76-
// }
77-
// }
78-
// },
79-
// responses: {
80-
// 200: { description: 'Default Response' }
81-
// }
82-
// }
83-
// }
84-
// })
8555
const post = fastify.swagger().paths["/"].post;
8656
t.assert.strictEqual(post.operationId, "test");
8757
// requestBody.required is not asserted because @fastify/swagger v9.7.0

0 commit comments

Comments
 (0)