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

Commit

Permalink
unit(employee schedule): prepare tests to update employee schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
KennethTrecy committed Sep 11, 2022
1 parent f4b0d0d commit 003377a
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions routes/api/employee_schedule/update(id).patch.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,21 @@ describe("Controller: PATCH /api/employee_schedule", () => {
requester.customizeRequest({
"body": {
"data": {
"type": "employee_schedule",
"id": String(employeeeSchedule.id),
"attributes": {
"dayName": newEmployeeeSchedule.dayName,
"scheduleEnd": newEmployeeeSchedule.scheduleEnd,
"scheduleStart": newEmployeeeSchedule.scheduleStart
}
},
"id": String(employeeeSchedule.id),
"relationships": {
"user": {
"data": {
"id": String(user.id),
"type": "user"
}
}
},
"type": "employee_schedule"
}
}
})
Expand All @@ -55,13 +63,21 @@ describe("Controller: PATCH /api/employee_schedule", () => {
requester.customizeRequest({
"body": {
"data": {
"type": "employee_schedule",
"id": String(employeeeSchedule.id),
"attributes": {
"dayName": "tue",
"scheduleEnd": newEmployeeeSchedule.scheduleEnd,
"scheduleStart": newEmployeeeSchedule.scheduleStart
}
},
"id": String(employeeeSchedule.id),
"relationships": {
"user": {
"data": {
"id": String(user.id),
"type": "user"
}
}
},
"type": "employee_schedule"
}
}
})
Expand Down

0 comments on commit 003377a

Please sign in to comment.