Skip to content

Commit f44bfa7

Browse files
committed
fix(EM-1799): drop just inactive enum choices
1 parent c09be3b commit f44bfa7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/JsonFormatter.test.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ describe("JSON Schema validation", () => {
8181
expect(validSchema.schema.properties.invasivespecies_urgency.enum).toContain("unknown");
8282
// Before fixing this, it was generating the enum as ["0"]. This test makes sure that's not the case anymore.
8383
expect(validSchema.schema.properties.invasivespecies_urgency.enum).not.toContain("0");
84+
// Verify the inactive option is not in the enum anymore
85+
expect(validSchema.schema.properties.invasivespecies_urgency.enum).not.toContain("test");
8486
});
8587

8688
it("Validate remove disabled titleMap choices", () => {

0 commit comments

Comments
 (0)