@@ -26,10 +26,12 @@ export const aUpdateUserInput = (overrides?: Partial<UpdateUserInput>): UpdateUs
26
26
export const aUser = (overrides?: Partial<User >): User => {
27
27
return {
28
28
id: overrides && overrides .hasOwnProperty (' id' ) ? overrides .id ! : ' a5756f00-41a6-422a-8a7d-d13ee6a63750' ,
29
+ creationDate: overrides && overrides .hasOwnProperty (' creationDate' ) ? overrides .creationDate ! : ' 1970-01-09T16:33:21.532Z' ,
29
30
login: overrides && overrides .hasOwnProperty (' login' ) ? overrides .login ! : ' libero' ,
30
31
avatar: overrides && overrides .hasOwnProperty (' avatar' ) ? overrides .avatar ! : anAvatar (),
31
32
status: overrides && overrides .hasOwnProperty (' status' ) ? overrides .status ! : Status .Online ,
32
33
customStatus: overrides && overrides .hasOwnProperty (' customStatus' ) ? overrides .customStatus ! : AbcStatus .HasXyzStatus ,
34
+ scalarValue: overrides && overrides .hasOwnProperty (' scalarValue' ) ? overrides .scalarValue ! : ' neque' ,
33
35
};
34
36
} ;
35
37
"
@@ -63,10 +65,49 @@ export const aUpdateUserInput = (overrides?: Partial<UpdateUserInput>): UpdateUs
63
65
export const aUser = (overrides?: Partial<User >): User => {
64
66
return {
65
67
id: overrides && overrides .hasOwnProperty (' id' ) ? overrides .id ! : ' a5756f00-41a6-422a-8a7d-d13ee6a63750' ,
68
+ creationDate: overrides && overrides .hasOwnProperty (' creationDate' ) ? overrides .creationDate ! : ' 1970-01-09T16:33:21.532Z' ,
66
69
login: overrides && overrides .hasOwnProperty (' login' ) ? overrides .login ! : ' libero' ,
67
70
avatar: overrides && overrides .hasOwnProperty (' avatar' ) ? overrides .avatar ! : anAvatar (),
68
71
status: overrides && overrides .hasOwnProperty (' status' ) ? overrides .status ! : Status .Online ,
69
72
customStatus: overrides && overrides .hasOwnProperty (' customStatus' ) ? overrides .customStatus ! : AbcStatus .HasXyzStatus ,
73
+ scalarValue: overrides && overrides .hasOwnProperty (' scalarValue' ) ? overrides .scalarValue ! : ' neque' ,
74
+ };
75
+ } ;
76
+ "
77
+ `;
78
+
79
+ exports[`should generate mock data functions with scalars 1`] = `
80
+ "
81
+ export const anAbcType = (overrides?: Partial<AbcType >): AbcType => {
82
+ return {
83
+ abc: overrides && overrides .hasOwnProperty (' abc' ) ? overrides .abc ! : ' sit' ,
84
+ };
85
+ } ;
86
+
87
+ export const anAvatar = (overrides?: Partial<Avatar >): Avatar => {
88
+ return {
89
+ id: overrides && overrides .hasOwnProperty (' id' ) ? overrides .id ! : ' 0550ff93-dd31-49b4-8c38-ff1cb68bdc38' ,
90
+ url: overrides && overrides .hasOwnProperty (' url' ) ? overrides .url ! : ' aliquid' ,
91
+ };
92
+ } ;
93
+
94
+ export const aUpdateUserInput = (overrides?: Partial<UpdateUserInput >): UpdateUserInput => {
95
+ return {
96
+ id: overrides && overrides .hasOwnProperty (' id' ) ? overrides .id ! : ' 1d6a9360-c92b-4660-8e5f-04155047bddc' ,
97
+ login: overrides && overrides .hasOwnProperty (' login' ) ? overrides .login ! : ' qui' ,
98
+ avatar: overrides && overrides .hasOwnProperty (' avatar' ) ? overrides .avatar ! : anAvatar (),
99
+ };
100
+ } ;
101
+
102
+ export const aUser = (overrides?: Partial<User >): User => {
103
+ return {
104
+ id: overrides && overrides .hasOwnProperty (' id' ) ? overrides .id ! : ' a5756f00-41a6-422a-8a7d-d13ee6a63750' ,
105
+ creationDate: overrides && overrides .hasOwnProperty (' creationDate' ) ? overrides .creationDate ! : ' 1970-01-09T16:33:21.532Z' ,
106
+ login: overrides && overrides .hasOwnProperty (' login' ) ? overrides .login ! : ' libero' ,
107
+ avatar: overrides && overrides .hasOwnProperty (' avatar' ) ? overrides .avatar ! : anAvatar (),
108
+ status: overrides && overrides .hasOwnProperty (' status' ) ? overrides .status ! : Status .Online ,
109
+ customStatus: overrides && overrides .hasOwnProperty (' customStatus' ) ? overrides .customStatus ! : AbcStatus .HasXyzStatus ,
110
+ scalarValue: overrides && overrides .hasOwnProperty (' scalarValue' ) ? overrides .scalarValue ! : ' neque' ,
70
111
};
71
112
} ;
72
113
"
@@ -98,10 +139,12 @@ export const aUpdateUserInput = (overrides?: Partial<UpdateUserInput>): UpdateUs
98
139
export const aUser = (overrides?: Partial<User >): User => {
99
140
return {
100
141
id: overrides && overrides .hasOwnProperty (' id' ) ? overrides .id ! : ' a5756f00-41a6-422a-8a7d-d13ee6a63750' ,
142
+ creationDate: overrides && overrides .hasOwnProperty (' creationDate' ) ? overrides .creationDate ! : ' 1970-01-09T16:33:21.532Z' ,
101
143
login: overrides && overrides .hasOwnProperty (' login' ) ? overrides .login ! : ' libero' ,
102
144
avatar: overrides && overrides .hasOwnProperty (' avatar' ) ? overrides .avatar ! : anAvatar (),
103
145
status: overrides && overrides .hasOwnProperty (' status' ) ? overrides .status ! : Status .ONLINE ,
104
146
customStatus: overrides && overrides .hasOwnProperty (' customStatus' ) ? overrides .customStatus ! : AbcStatus .hasXYZStatus ,
147
+ scalarValue: overrides && overrides .hasOwnProperty (' scalarValue' ) ? overrides .scalarValue ! : ' neque' ,
105
148
};
106
149
} ;
107
150
"
@@ -133,10 +176,12 @@ export const aUpdateUserInput = (overrides?: Partial<UpdateUserInput>): UpdateUs
133
176
export const aUser = (overrides?: Partial<User >): User => {
134
177
return {
135
178
id: overrides && overrides .hasOwnProperty (' id' ) ? overrides .id ! : ' a5756f00-41a6-422a-8a7d-d13ee6a63750' ,
179
+ creationDate: overrides && overrides .hasOwnProperty (' creationDate' ) ? overrides .creationDate ! : ' 1970-01-09T16:33:21.532Z' ,
136
180
login: overrides && overrides .hasOwnProperty (' login' ) ? overrides .login ! : ' libero' ,
137
181
avatar: overrides && overrides .hasOwnProperty (' avatar' ) ? overrides .avatar ! : anAvatar (),
138
182
status: overrides && overrides .hasOwnProperty (' status' ) ? overrides .status ! : Status .Online ,
139
183
customStatus: overrides && overrides .hasOwnProperty (' customStatus' ) ? overrides .customStatus ! : ABCStatus .HasXyzStatus ,
184
+ scalarValue: overrides && overrides .hasOwnProperty (' scalarValue' ) ? overrides .scalarValue ! : ' neque' ,
140
185
};
141
186
} ;
142
187
"
@@ -168,10 +213,12 @@ export const aUpdateUserInput = (overrides?: Partial<UpdateUserInput>): UpdateUs
168
213
export const aUser = (overrides?: Partial<User >): User => {
169
214
return {
170
215
id: overrides && overrides .hasOwnProperty (' id' ) ? overrides .id ! : ' a5756f00-41a6-422a-8a7d-d13ee6a63750' ,
216
+ creationDate: overrides && overrides .hasOwnProperty (' creationDate' ) ? overrides .creationDate ! : ' 1970-01-09T16:33:21.532Z' ,
171
217
login: overrides && overrides .hasOwnProperty (' login' ) ? overrides .login ! : ' libero' ,
172
218
avatar: overrides && overrides .hasOwnProperty (' avatar' ) ? overrides .avatar ! : anAvatar (),
173
219
status: overrides && overrides .hasOwnProperty (' status' ) ? overrides .status ! : Status .Online ,
174
220
customStatus: overrides && overrides .hasOwnProperty (' customStatus' ) ? overrides .customStatus ! : AbcStatus .HasXyzStatus ,
221
+ scalarValue: overrides && overrides .hasOwnProperty (' scalarValue' ) ? overrides .scalarValue ! : ' neque' ,
175
222
};
176
223
} ;
177
224
"
@@ -203,10 +250,12 @@ export const aUpdateUserInput = (overrides?: Partial<UpdateUserInput>): UpdateUs
203
250
export const aUser = (overrides?: Partial<User >): User => {
204
251
return {
205
252
id: overrides && overrides .hasOwnProperty (' id' ) ? overrides .id ! : ' a5756f00-41a6-422a-8a7d-d13ee6a63750' ,
253
+ creationDate: overrides && overrides .hasOwnProperty (' creationDate' ) ? overrides .creationDate ! : ' 1970-01-09T16:33:21.532Z' ,
206
254
login: overrides && overrides .hasOwnProperty (' login' ) ? overrides .login ! : ' libero' ,
207
255
avatar: overrides && overrides .hasOwnProperty (' avatar' ) ? overrides .avatar ! : anAvatar (),
208
256
status: overrides && overrides .hasOwnProperty (' status' ) ? overrides .status ! : Status .Online ,
209
257
customStatus: overrides && overrides .hasOwnProperty (' customStatus' ) ? overrides .customStatus ! : AbcStatus .HasXyzStatus ,
258
+ scalarValue: overrides && overrides .hasOwnProperty (' scalarValue' ) ? overrides .scalarValue ! : ' neque' ,
210
259
};
211
260
} ;
212
261
"
@@ -238,10 +287,12 @@ export const aUpdateUserInput = (overrides?: Partial<UpdateUserInput>): UpdateUs
238
287
export const aUser = (overrides?: Partial<User >): User => {
239
288
return {
240
289
id: overrides && overrides .hasOwnProperty (' id' ) ? overrides .id ! : ' a5756f00-41a6-422a-8a7d-d13ee6a63750' ,
290
+ creationDate: overrides && overrides .hasOwnProperty (' creationDate' ) ? overrides .creationDate ! : ' 1970-01-09T16:33:21.532Z' ,
241
291
login: overrides && overrides .hasOwnProperty (' login' ) ? overrides .login ! : ' libero' ,
242
292
avatar: overrides && overrides .hasOwnProperty (' avatar' ) ? overrides .avatar ! : anAvatar (),
243
293
status: overrides && overrides .hasOwnProperty (' status' ) ? overrides .status ! : Status .Online ,
244
294
customStatus: overrides && overrides .hasOwnProperty (' customStatus' ) ? overrides .customStatus ! : AbcStatus .HasXyzStatus ,
295
+ scalarValue: overrides && overrides .hasOwnProperty (' scalarValue' ) ? overrides .scalarValue ! : ' neque' ,
245
296
};
246
297
} ;
247
298
"
@@ -273,10 +324,12 @@ export const aUpdateUserInput = (overrides?: Partial<UpdateUserInput>): UpdateUs
273
324
export const aUser = (overrides?: Partial<User >): User => {
274
325
return {
275
326
id: overrides && overrides .hasOwnProperty (' id' ) ? overrides .id ! : ' a5756f00-41a6-422a-8a7d-d13ee6a63750' ,
327
+ creationDate: overrides && overrides .hasOwnProperty (' creationDate' ) ? overrides .creationDate ! : ' 1970-01-09T16:33:21.532Z' ,
276
328
login: overrides && overrides .hasOwnProperty (' login' ) ? overrides .login ! : ' libero' ,
277
329
avatar: overrides && overrides .hasOwnProperty (' avatar' ) ? overrides .avatar ! : anAvatar (),
278
330
status: overrides && overrides .hasOwnProperty (' status' ) ? overrides .status ! : Status .Online ,
279
331
customStatus: overrides && overrides .hasOwnProperty (' customStatus' ) ? overrides .customStatus ! : AbcStatus .HasXyzStatus ,
332
+ scalarValue: overrides && overrides .hasOwnProperty (' scalarValue' ) ? overrides .scalarValue ! : ' neque' ,
280
333
};
281
334
} ;
282
335
"
@@ -311,10 +364,12 @@ export const aUser = (overrides?: Partial<User>): User => {
311
364
return {
312
365
__typename: ' User' ,
313
366
id: overrides && overrides .hasOwnProperty (' id' ) ? overrides .id ! : ' a5756f00-41a6-422a-8a7d-d13ee6a63750' ,
367
+ creationDate: overrides && overrides .hasOwnProperty (' creationDate' ) ? overrides .creationDate ! : ' 1970-01-09T16:33:21.532Z' ,
314
368
login: overrides && overrides .hasOwnProperty (' login' ) ? overrides .login ! : ' libero' ,
315
369
avatar: overrides && overrides .hasOwnProperty (' avatar' ) ? overrides .avatar ! : anAvatar (),
316
370
status: overrides && overrides .hasOwnProperty (' status' ) ? overrides .status ! : Status .Online ,
317
371
customStatus: overrides && overrides .hasOwnProperty (' customStatus' ) ? overrides .customStatus ! : AbcStatus .HasXyzStatus ,
372
+ scalarValue: overrides && overrides .hasOwnProperty (' scalarValue' ) ? overrides .scalarValue ! : ' neque' ,
318
373
};
319
374
} ;
320
375
"
@@ -346,10 +401,12 @@ export const aUpdateUserInput = (overrides?: Partial<UpdateUserInput>): UpdateUs
346
401
export const aUser = (overrides?: Partial<User >): User => {
347
402
return {
348
403
id: overrides && overrides .hasOwnProperty (' id' ) ? overrides .id ! : ' a5756f00-41a6-422a-8a7d-d13ee6a63750' ,
404
+ creationDate: overrides && overrides .hasOwnProperty (' creationDate' ) ? overrides .creationDate ! : ' 1970-01-09T16:33:21.532Z' ,
349
405
login: overrides && overrides .hasOwnProperty (' login' ) ? overrides .login ! : ' libero' ,
350
406
avatar: overrides && overrides .hasOwnProperty (' avatar' ) ? overrides .avatar ! : anAvatar (),
351
407
status: overrides && overrides .hasOwnProperty (' status' ) ? overrides .status ! : Status .ONLINE ,
352
408
customStatus: overrides && overrides .hasOwnProperty (' customStatus' ) ? overrides .customStatus ! : AbcStatus .HASXYZSTATUS ,
409
+ scalarValue: overrides && overrides .hasOwnProperty (' scalarValue' ) ? overrides .scalarValue ! : ' neque' ,
353
410
};
354
411
} ;
355
412
"
@@ -381,10 +438,12 @@ export const aUPDATEUSERINPUT = (overrides?: Partial<UPDATEUSERINPUT>): UPDATEUS
381
438
export const aUSER = (overrides?: Partial<USER >): USER => {
382
439
return {
383
440
id: overrides && overrides .hasOwnProperty (' id' ) ? overrides .id ! : ' a5756f00-41a6-422a-8a7d-d13ee6a63750' ,
441
+ creationDate: overrides && overrides .hasOwnProperty (' creationDate' ) ? overrides .creationDate ! : ' 1970-01-09T16:33:21.532Z' ,
384
442
login: overrides && overrides .hasOwnProperty (' login' ) ? overrides .login ! : ' libero' ,
385
443
avatar: overrides && overrides .hasOwnProperty (' avatar' ) ? overrides .avatar ! : anAvatar (),
386
444
status: overrides && overrides .hasOwnProperty (' status' ) ? overrides .status ! : STATUS .Online ,
387
445
customStatus: overrides && overrides .hasOwnProperty (' customStatus' ) ? overrides .customStatus ! : ABCSTATUS .HasXyzStatus ,
446
+ scalarValue: overrides && overrides .hasOwnProperty (' scalarValue' ) ? overrides .scalarValue ! : ' neque' ,
388
447
};
389
448
} ;
390
449
"
0 commit comments