style: fix deno fmt and lint
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user