Skip to content

Commit c984e2f

Browse files
gh-action-runnergh-action-runner
authored andcommitted
Squashed 'apollo-ios-codegen/' changes from f059bb38..8cf081a6
8cf081a6 Fix generated default mock initializer for lowercase type names (#712) git-subtree-dir: apollo-ios-codegen git-subtree-split: 8cf081a638fd4809bafddf4d8af26f75e4262142
1 parent 7d618e5 commit c984e2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/ApolloCodegenLib/FileGenerators/DefaultMockValueProviding.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ extension GraphQLEnumType: DefaultMockValueProviding {
5454

5555
extension GraphQLObjectType: DefaultMockValueProviding {
5656
func defaultMockValue(config: ApolloCodegen.ConfigurationContext) -> String {
57-
return "Mock<\(name)>()"
57+
return "Mock<\(self.render(as: .typename))>()"
5858
}
5959
}
6060

0 commit comments

Comments
 (0)