style: fix deno fmt and lint
This commit is contained in:
@@ -17,8 +17,14 @@ Deno.test({
|
||||
name: "e2e modules: GET /modules returns all as employee",
|
||||
async fn() {
|
||||
await truncateAll();
|
||||
await seedModules([{ id: "MATH101", nom: "Mathématiques" }, { id: "INFO101", nom: "Informatique" }]);
|
||||
const res = await modulesHandler.GET!(makeGetRequest("/modules"), makeEmployeeContext());
|
||||
await seedModules([{ id: "MATH101", nom: "Mathématiques" }, {
|
||||
id: "INFO101",
|
||||
nom: "Informatique",
|
||||
}]);
|
||||
const res = await modulesHandler.GET!(
|
||||
makeGetRequest("/modules"),
|
||||
makeEmployeeContext(),
|
||||
);
|
||||
assertEquals(res.status, 200);
|
||||
const body = await res.json();
|
||||
assertEquals(body.length, 2);
|
||||
|
||||
Reference in New Issue
Block a user