Skip to content

Commit 6f8e817

Browse files
committed
Format union codegen test
1 parent c07135e commit 6f8e817

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

nodejs/test/discriminated-union-codegen.test.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,9 @@ describe("schema-driven discriminated union codegen", () => {
142142

143143
it("promotes every nested synthetic union for Java generation", () => {
144144
expect(
145-
analyseNestedClosedUnionResult(
146-
{ $ref: "#/definitions/SyntheticResult" },
147-
definitions
148-
)?.unionDefinitionNames
149-
).toEqual(
150-
new Set(["SyntheticResult", "SyntheticChoice", "SyntheticSource"])
151-
);
145+
analyseNestedClosedUnionResult({ $ref: "#/definitions/SyntheticResult" }, definitions)
146+
?.unionDefinitionNames
147+
).toEqual(new Set(["SyntheticResult", "SyntheticChoice", "SyntheticSource"]));
152148
expect(
153149
collectNestedDiscriminatedUnionTypeNames(
154150
{ $ref: "#/definitions/SyntheticResult" },

0 commit comments

Comments
 (0)