Skip to content

Commit

Permalink
ci: fix failing test (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzlopak authored Jan 29, 2025
1 parent 8865000 commit fda244f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test/transform-swagger.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,7 @@ test('transformSpecificationClone false should not deepclone fastify.swagger() /
url: '/documentation/json'
})

const swagger = fastify.swagger()
Object.getOwnPropertySymbols(swagger.definitions.User).forEach((symbol) => delete swagger.definitions.User[symbol])

t.assert.deepStrictEqual(swagger, JSON.parse(res.body))
t.assert.deepStrictEqual(fastify.swagger(), JSON.parse(res.body))
})

test('transformSpecification should modify the yaml', async (t) => {
Expand Down

0 comments on commit fda244f

Please sign in to comment.