Update test expectations and fix test utility usage

Replaced `console.log` with `expect` in crypto tests for proper validation. Wrapped a test case with `withDisabledConsole` to suppress expected log output. Fixed typo in data test field configuration (`max_length` to `maxLength`).
This commit is contained in:
dswbx
2025-01-09 11:23:23 +01:00
parent 99df7f1402
commit 138a3579cb
3 changed files with 11 additions and 7 deletions

View File

@@ -18,7 +18,7 @@ describe("some tests", async () => {
const users = new Entity("users", [
new TextField("username", { required: true, default_value: "nobody" }),
new TextField("email", { max_length: 3 })
new TextField("email", { maxLength: 3 })
]);
const posts = new Entity("posts", [