Skip to content

Commit

Permalink
test(fromOpenApi): expect one handler to be generated
Browse files Browse the repository at this point in the history
  • Loading branch information
jauniusmentimeter committed Jul 17, 2024
1 parent 89f2e80 commit e3d2391
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/oas/from-open-api.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ it('creates handlers based on provided filter', async () => {
},
)

expect(await inspectHandlers(handlers)).toEqual<InspectedHandler[]>([
const inspectedHandlers = await inspectHandlers(handlers)
expect(inspectHandlers.length).toBe(1)
expect(inspectedHandlers).toEqual<InspectedHandler[]>([
{
handler: {
method: 'GET',
Expand Down

0 comments on commit e3d2391

Please sign in to comment.