Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
unit(chat message): ensure that there are two validation error to show
Browse files Browse the repository at this point in the history
  • Loading branch information
KennethTrecy committed Sep 13, 2022
1 parent bbef5ac commit ebf6e4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/api/chat_message/list.get.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe("Controller: GET /api/chat_message", () => {
await requester.runMiddleware(queryValidationFunction)

const body = requester.expectFailure(ErrorBag).toJSON()
expect(body).toHaveLength(1)
expect(body).toHaveLength(2)
expect(body).toHaveProperty("0.source.parameter", "filter.consultationIDs")
expect(body).toHaveProperty("1.source.parameter", "filter.existence")
})
Expand Down

0 comments on commit ebf6e4d

Please sign in to comment.