Skip to content

Commit d511d74

Browse files
committed
test: change polyphormism test examples
1 parent 0d48a77 commit d511d74

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/openapi-typescript/test/schema-object.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -279,18 +279,18 @@ describe("Schema Object", () => {
279279
});
280280

281281
test("enum + polymorphism + nullable 1", () => {
282-
const generated = transformSchemaObject({ type: ["string", "null"], enum: ["false positive", "won't fix", "used in tests"] }, options);
283-
expect(generated).toBe(`"false positive" | "won't fix" | "used in tests"`);
282+
const generated = transformSchemaObject({ type: ["string", "null"], enum: ["blue", "green", "yellow"] }, options);
283+
expect(generated).toBe(`"blue" | "green" | "yellow"`);
284284
});
285285

286286
test("enum + polymorphism + nullable 2", () => {
287-
const generated = transformSchemaObject({ type: ["string", "null"], enum: ["", "false positive", "won't fix", "used in tests"] }, options);
288-
expect(generated).toBe(`"" | "false positive" | "won't fix" | "used in tests"`);
287+
const generated = transformSchemaObject({ type: ["string", "null"], enum: ["", "blue", "green", "yellow"] }, options);
288+
expect(generated).toBe(`"" | "blue" | "green" | "yellow"`);
289289
});
290290

291291
test("enum + polymorphism + nullable 3", () => {
292-
const generated = transformSchemaObject({ type: ["string", "null"], enum: [null, "false positive", "won't fix", "used in tests"] }, options);
293-
expect(generated).toBe(`null | "false positive" | "won't fix" | "used in tests"`);
292+
const generated = transformSchemaObject({ type: ["string", "null"], enum: [null, "blue", "green", "yellow"] }, options);
293+
expect(generated).toBe(`null | "blue" | "green" | "yellow"`);
294294
});
295295
});
296296
});

0 commit comments

Comments
 (0)