Skip to content

Commit f715ae5

Browse files
author
lleadbet
committed
adding basic schedule unit tests
1 parent ff341bf commit f715ae5

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

internal/mock_api/endpoints/schedule/segment.go

-9
Original file line numberDiff line numberDiff line change
@@ -154,22 +154,13 @@ func (e ScheduleSegment) postSegment(w http.ResponseWriter, r *http.Request) {
154154
ID: eventID,
155155
StartTime: startTime.Format(time.RFC3339),
156156
EndTime: endTime.Format(time.RFC3339),
157-
<<<<<<< HEAD
158157
IsRecurring: *body.IsRecurring,
159158
IsVacation: false,
160159
CategoryID: body.CategoryID,
161160
Title: body.Title,
162161
UserID: userCtx.UserID,
163162
Timezone: body.Timezone,
164163
IsCanceled: &f,
165-
=======
166-
IsRecurring: true,
167-
IsVacation: false,
168-
CategoryID: body.CategoryID,
169-
Title: "Test Title",
170-
UserID: userCtx.UserID,
171-
Timezone: body.Timezone,
172-
>>>>>>> 7985dac (adding schedules api support)
173164
}
174165

175166
err := db.NewQuery(nil, 100).InsertSchedule(s)

0 commit comments

Comments
 (0)