Skip to content

Commit 0697182

Browse files
authored
remove variables that no longer exist (#967)
1 parent 89e714c commit 0697182

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

tests/api/deserialization.test.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ test('TestDeserializationUnknownNestedOneOfInList', () => {
7474
"SyntheticsAPITest",
7575
"");
7676

77-
expect(result?.unparsedObject).toBe(undefined);
7877
expect(result._unparsed).toBe(true);
7978
expect(result.config.assertions.length).toBe(3);
8079
expect(result.config.assertions[2]._data["operator"]).toBe("A non existent operator");
@@ -151,7 +150,6 @@ test('TestDeserializationUnknownNestedEnumInList', () => {
151150
"SyntheticsBrowserTest",
152151
"");
153152

154-
expect(result?.unparsedObject).toBe(undefined);
155153
expect(result._unparsed).toBe(true);
156154
expect(result.options.deviceIds.length).toBe(3);
157155
expect(result.options.deviceIds[2]._data).toBe("A non existent device ID");
@@ -251,9 +249,7 @@ test('TestDeserializationUnknownNestedEnum', () => {
251249
"SyntheticsAPITest",
252250
"");
253251

254-
expect(result?.unparsedObject).toBe(undefined);
255252
expect(result._unparsed).toBe(true);
256-
expect(result.config.unparsedObject).toBe(undefined);
257253
expect(result.config.assertions[0]).toBeInstanceOf(UnparsedObject);
258254
expect(result.config.assertions[0]._data["operator"]).toBe("not-an-operator");
259255
expect(result.config.assertions[0]._data["target"]).toBe(200);
@@ -293,9 +289,7 @@ test('TestDeserializationUnknownNestedOneOf', () => {
293289
"LogsArchive",
294290
"");
295291

296-
expect(result?.unparsedObject).toBe(undefined);
297292
expect(result._unparsed).toBe(true);
298-
expect(result.data.attributes.unparsedObject).toBe(undefined);
299293
expect(result.data.attributes.destination._data["type"]).toBe("A non existent destination");
300294
}
301295
);

0 commit comments

Comments
 (0)