Skip to content

Commit bdb9db0

Browse files
AnthonyMDevgh-action-runner
authored andcommitted
3599 mock custom scalar (apollographql/apollo-ios-dev#838)
1 parent f118fe1 commit bdb9db0

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

CLI/apollo-ios-cli.tar.gz

34 KB
Binary file not shown.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
@_spi(Internal) import ApolloAPI
2+
3+
public extension ScalarType {
4+
static var defaultMockValue: Self {
5+
try! .init(_jsonValue: "")
6+
}
7+
}
8+
9+
public extension CustomScalarType {
10+
static var defaultMockValue: Self {
11+
try! .init(_jsonValue: "")
12+
}
13+
}

0 commit comments

Comments
 (0)