style: fix deno fmt and lint

This commit is contained in:
2026-04-26 14:18:55 +02:00
committed by djalim
parent c86d20ca81
commit c5d02a2890
3 changed files with 42 additions and 10 deletions
+8 -2
View File
@@ -9,7 +9,10 @@ Deno.test({
name: "integration modules: list all modules",
async fn() {
await truncateAll();
await seedModules([{ id: "MATH101", nom: "Mathématiques" }, { id: "INFO101", nom: "Informatique" }]);
await seedModules([{ id: "MATH101", nom: "Mathématiques" }, {
id: "INFO101",
nom: "Informatique",
}]);
const rows = await testDb.select().from(modules);
assertEquals(rows.length, 2);
},
@@ -21,7 +24,10 @@ Deno.test({
name: "integration modules: create and retrieve by id",
async fn() {
await truncateAll();
const [created] = await testDb.insert(modules).values({ id: "PHYS101", nom: "Physique" }).returning();
const [created] = await testDb.insert(modules).values({
id: "PHYS101",
nom: "Physique",
}).returning();
assertExists(created);
assertEquals(created.id, "PHYS101");