added event related tests to mutator, fixed tests

This commit is contained in:
dswbx
2025-01-16 10:11:10 +01:00
parent 6c9707d12c
commit aa4aca1a90
13 changed files with 89 additions and 32 deletions

View File

@@ -13,10 +13,6 @@ describe("[data] EnumField", async () => {
{ options: options(["a", "b", "c"]) }
);
test("yields if no options", async () => {
expect(() => new EnumField("test", { options: options([]) })).toThrow();
});
test("yields if default value is not a valid option", async () => {
expect(
() => new EnumField("test", { options: options(["a", "b"]), default_value: "c" })