@@ -101,15 +101,15 @@ var fixtureAuthMe = mustJSON(map[string]any{
101101 "company" : map [string ]any {
102102 "companyId" : fakeCompanyID , "name" : "Example Co" , "slug" : "example-co" ,
103103 },
104- "mfaType" : "email" ,
105- "language" : "en" ,
106- "currency" : "GBP" ,
104+ "mfaType" : "email" ,
105+ "language" : "en" ,
106+ "currency" : "GBP" ,
107107 "contractType" : "Payrolled" ,
108108 "scopes2" : []map [string ]string {{"scope" : "user" }, {"scope" : "absence" }},
109109 },
110- "isSuperAdmin" : false ,
110+ "isSuperAdmin" : false ,
111111 "hasUnpaidInvoices" : false ,
112- "publicURL" : "https://go.zelt.app/files" ,
112+ "publicURL" : "https://go.zelt.app/files" ,
113113})
114114
115115var fixtureLoginStep1 = mustJSON (map [string ]any {"mfaType" : "email" })
@@ -123,9 +123,9 @@ var fixtureLoginStep2 = mustJSON(map[string]any{
123123
124124// fixtureAbsenceVerifyOverlap mirrors /apiv2/absences/verify-overlap.
125125var fixtureAbsenceVerifyOverlap = mustJSON (map [string ]any {
126- "isOverlapping" : false ,
127- "absences" : []any {},
128- "events" : []any {},
126+ "isOverlapping" : false ,
127+ "absences" : []any {},
128+ "events" : []any {},
129129 "preventOwnOverlaps" : true ,
130130})
131131
@@ -152,10 +152,10 @@ var fixtureRequestValueBalance = mustJSON(map[string]any{
152152})
153153
154154var fixtureBookSuccess = mustJSON (map [string ]any {
155- "success" : true ,
156- "method" : "direct" ,
155+ "success" : true ,
156+ "method" : "direct" ,
157157 "noOfCreatedAbsences" : 1 ,
158- "skippedUsers" : []any {},
158+ "skippedUsers" : []any {},
159159})
160160
161161var fixtureLeaveDays = mustJSON (map [string ]any {
@@ -176,9 +176,9 @@ var fixtureAttendanceWidget = mustJSON(map[string]any{
176176})
177177
178178var fixtureCalendar = mustJSON (map [string ]any {
179- "users" : []any {},
180- "days" : []any {},
181- "totals" : map [string ]int {"absences" : 0 , "events" : 0 },
179+ "users" : []any {},
180+ "days" : []any {},
181+ "totals" : map [string ]int {"absences" : 0 , "events" : 0 },
182182})
183183
184184var fixtureExpenses = mustJSON (map [string ]any {
@@ -211,10 +211,10 @@ type recordedRequest struct {
211211type routeHandler func (w http.ResponseWriter , r * http.Request , body []byte )
212212
213213type serverState struct {
214- mu sync.Mutex
215- requests []recordedRequest
216- routes map [string ]routeHandler // key: METHOD PATH (path without query)
217- notFound routeHandler
214+ mu sync.Mutex
215+ requests []recordedRequest
216+ routes map [string ]routeHandler // key: METHOD PATH (path without query)
217+ notFound routeHandler
218218}
219219
220220func newServerState () * serverState {
0 commit comments