File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -228,8 +228,8 @@ const getMockString = (
228
228
const typenameConverter = createNameConverter ( typenamesConvention , transformUnderscore ) ;
229
229
const casedName = typenameConverter ( typeName ) ;
230
230
const casedNameWithPrefix = typenameConverter ( typeName , typesPrefix ) ;
231
- const typename = addTypename ? `\n __typename: '${ casedName } ',` : '' ;
232
- const typenameReturnType = addTypename ? `{ __typename: '${ casedName } ' } & ` : '' ;
231
+ const typename = addTypename ? `\n __typename: '${ typeName } ',` : '' ;
232
+ const typenameReturnType = addTypename ? `{ __typename: '${ typeName } ' } & ` : '' ;
233
233
234
234
if ( terminateCircularRelationships ) {
235
235
return `
Original file line number Diff line number Diff line change @@ -1463,23 +1463,23 @@ export const aWithAvatar = (overrides?: Partial<WithAvatar>): { __typename: 'Wit
1463
1463
};
1464
1464
};
1465
1465
1466
- export const aCamelCaseThing = (overrides?: Partial<CamelCaseThing>): { __typename: 'CamelCaseThing ' } & CamelCaseThing => {
1466
+ export const aCamelCaseThing = (overrides?: Partial<CamelCaseThing>): { __typename: 'camelCaseThing ' } & CamelCaseThing => {
1467
1467
return {
1468
- __typename: 'CamelCaseThing ',
1468
+ __typename: 'camelCaseThing ',
1469
1469
id: overrides && overrides.hasOwnProperty('id') ? overrides.id! : '345b9cf9-00fa-4974-800f-aeee5ee7fd42',
1470
1470
};
1471
1471
};
1472
1472
1473
- export const aPrefixedResponse = (overrides?: Partial<PrefixedResponse>): { __typename: 'PrefixedResponse ' } & PrefixedResponse => {
1473
+ export const aPrefixedResponse = (overrides?: Partial<PrefixedResponse>): { __typename: 'Prefixed_Response ' } & PrefixedResponse => {
1474
1474
return {
1475
- __typename: 'PrefixedResponse ',
1475
+ __typename: 'Prefixed_Response ',
1476
1476
ping: overrides && overrides.hasOwnProperty('ping') ? overrides.ping! : 'sunt',
1477
1477
};
1478
1478
};
1479
1479
1480
- export const anAbcType = (overrides?: Partial<AbcType>): { __typename: 'AbcType ' } & AbcType => {
1480
+ export const anAbcType = (overrides?: Partial<AbcType>): { __typename: 'ABCType ' } & AbcType => {
1481
1481
return {
1482
- __typename: 'AbcType ',
1482
+ __typename: 'ABCType ',
1483
1483
abc: overrides && overrides.hasOwnProperty('abc') ? overrides.abc! : 'sit',
1484
1484
};
1485
1485
};
You can’t perform that action at this time.
0 commit comments