diff --git a/test/unit/assert.test.ts b/test/unit/assert.test.ts deleted file mode 100644 index 91e5c7566..000000000 --- a/test/unit/assert.test.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { LogicError } from "../../src/Error/LogicError.js"; -import assert from "../../src/Utils/assert.js"; - -describe("validate assert", () => { - it.each` - value - ${"hello"} - ${1} - ${true} - ${{}} - `("success $value", ({ value }) => { - expect(() => assert(value, "message")).not.toThrow(); - }); - - it.each` - value - ${""} - ${0} - ${false} - ${undefined} - ${null} - `("fail $value", ({ value }) => { - expect(() => assert(value, "failed to be true")).toThrowError(LogicError); - }); -});