Skip to content

Commit 8c10167

Browse files
UPDATE_SNAPSHOTS=1 swift test --package-path ./Plugins/BridgeJS
1 parent 777c040 commit 8c10167

File tree

2 files changed

+24
-14
lines changed

2 files changed

+24
-14
lines changed

Plugins/BridgeJS/Tests/BridgeJSToolTests/__Snapshots__/BridgeJSCodegenTests/JSValue.json

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@
2323
"label" : "optionalValue",
2424
"name" : "optionalValue",
2525
"type" : {
26-
"optional" : {
26+
"nullable" : {
2727
"_0" : {
2828
"jsValue" : {
2929

3030
}
31-
}
31+
},
32+
"_1" : "null"
3233
}
3334
}
3435
}
@@ -57,12 +58,13 @@
5758
"label" : "optionalValue",
5859
"name" : "optionalValue",
5960
"type" : {
60-
"optional" : {
61+
"nullable" : {
6162
"_0" : {
6263
"jsValue" : {
6364

6465
}
65-
}
66+
},
67+
"_1" : "null"
6668
}
6769
}
6870
}
@@ -111,23 +113,25 @@
111113
"label" : "_",
112114
"name" : "value",
113115
"type" : {
114-
"optional" : {
116+
"nullable" : {
115117
"_0" : {
116118
"jsValue" : {
117119

118120
}
119-
}
121+
},
122+
"_1" : "null"
120123
}
121124
}
122125
}
123126
],
124127
"returnType" : {
125-
"optional" : {
128+
"nullable" : {
126129
"_0" : {
127130
"jsValue" : {
128131

129132
}
130-
}
133+
},
134+
"_1" : "null"
131135
}
132136
}
133137
}
@@ -149,12 +153,13 @@
149153
"isStatic" : false,
150154
"name" : "optionalValue",
151155
"type" : {
152-
"optional" : {
156+
"nullable" : {
153157
"_0" : {
154158
"jsValue" : {
155159

156160
}
157-
}
161+
},
162+
"_1" : "null"
158163
}
159164
}
160165
}
@@ -205,23 +210,25 @@
205210
"label" : "_",
206211
"name" : "value",
207212
"type" : {
208-
"optional" : {
213+
"nullable" : {
209214
"_0" : {
210215
"jsValue" : {
211216

212217
}
213-
}
218+
},
219+
"_1" : "null"
214220
}
215221
}
216222
}
217223
],
218224
"returnType" : {
219-
"optional" : {
225+
"nullable" : {
220226
"_0" : {
221227
"jsValue" : {
222228

223229
}
224-
}
230+
},
231+
"_1" : "null"
225232
}
226233
}
227234
}

Plugins/BridgeJS/Tests/BridgeJSToolTests/__Snapshots__/BridgeJSCodegenTests/Optionals.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1220,6 +1220,9 @@
12201220
}
12211221
}
12221222
}
1223+
],
1224+
"staticMethods" : [
1225+
12231226
]
12241227
}
12251228
]

0 commit comments

Comments
 (0)