Fixing unit test (#205)

Fixing POST unit test for `apps/api/test/lib/bookings`
pull/9078/head
Leo Giovanetti 2022-11-18 16:19:33 -03:00 committed by GitHub
parent 4080e5bc5e
commit 3654677a20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ describe("POST /api/bookings", () => {
expect(JSON.parse(res._getData())).toEqual(
expect.objectContaining({
message:
"'invalid_type' in 'email': Required; 'invalid_type' in 'end': Required; 'invalid_type' in 'eventTypeId': Required; 'invalid_type' in 'location': Required; 'invalid_type' in 'name': Required; 'invalid_type' in 'start': Required; 'invalid_type' in 'timeZone': Required; 'invalid_type' in 'language': Required; 'invalid_type' in 'customInputs': Required; 'invalid_type' in 'metadata': Required",
"invalid_type in 'eventTypeId': Required; invalid_type in 'title': Required; invalid_type in 'startTime': Required; invalid_type in 'startTime': Required; invalid_type in 'endTime': Required; invalid_type in 'endTime': Required",
})
);
});