@@ -74,7 +74,6 @@ test('TestDeserializationUnknownNestedOneOfInList', () => {
74
74
"SyntheticsAPITest" ,
75
75
"" ) ;
76
76
77
- expect ( result ?. unparsedObject ) . toBe ( undefined ) ;
78
77
expect ( result . _unparsed ) . toBe ( true ) ;
79
78
expect ( result . config . assertions . length ) . toBe ( 3 ) ;
80
79
expect ( result . config . assertions [ 2 ] . _data [ "operator" ] ) . toBe ( "A non existent operator" ) ;
@@ -151,7 +150,6 @@ test('TestDeserializationUnknownNestedEnumInList', () => {
151
150
"SyntheticsBrowserTest" ,
152
151
"" ) ;
153
152
154
- expect ( result ?. unparsedObject ) . toBe ( undefined ) ;
155
153
expect ( result . _unparsed ) . toBe ( true ) ;
156
154
expect ( result . options . deviceIds . length ) . toBe ( 3 ) ;
157
155
expect ( result . options . deviceIds [ 2 ] . _data ) . toBe ( "A non existent device ID" ) ;
@@ -251,9 +249,7 @@ test('TestDeserializationUnknownNestedEnum', () => {
251
249
"SyntheticsAPITest" ,
252
250
"" ) ;
253
251
254
- expect ( result ?. unparsedObject ) . toBe ( undefined ) ;
255
252
expect ( result . _unparsed ) . toBe ( true ) ;
256
- expect ( result . config . unparsedObject ) . toBe ( undefined ) ;
257
253
expect ( result . config . assertions [ 0 ] ) . toBeInstanceOf ( UnparsedObject ) ;
258
254
expect ( result . config . assertions [ 0 ] . _data [ "operator" ] ) . toBe ( "not-an-operator" ) ;
259
255
expect ( result . config . assertions [ 0 ] . _data [ "target" ] ) . toBe ( 200 ) ;
@@ -293,9 +289,7 @@ test('TestDeserializationUnknownNestedOneOf', () => {
293
289
"LogsArchive" ,
294
290
"" ) ;
295
291
296
- expect ( result ?. unparsedObject ) . toBe ( undefined ) ;
297
292
expect ( result . _unparsed ) . toBe ( true ) ;
298
- expect ( result . data . attributes . unparsedObject ) . toBe ( undefined ) ;
299
293
expect ( result . data . attributes . destination . _data [ "type" ] ) . toBe ( "A non existent destination" ) ;
300
294
}
301
295
) ;
0 commit comments