Skip to content

Commit 62b2457

Browse files
gh-action-runnergh-action-runner
authored andcommitted
Squashed 'apollo-ios-codegen/' changes from 6bbae6b1e..88d92d525
88d92d525 3599 mock custom scalar (#838) git-subtree-dir: apollo-ios-codegen git-subtree-split: 88d92d52536f30ef8741ae8b31d0da8e3b9c0358
1 parent e8e4940 commit 62b2457

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
@@ -38,7 +38,7 @@ extension GraphQLScalarType: DefaultMockValueProviding {
3838
case "Boolean":
3939
return "false"
4040
default:
41-
return "try! .init(_jsonValue: \"\")"
41+
return ".defaultMockValue"
4242
}
4343
}
4444
}

0 commit comments

Comments
 (0)