chore: formated tests
Check Deno code / Check Deno code (pull_request) Successful in 5s
Tests / Unit tests (pull_request) Successful in 12s
Tests / Integration tests (pull_request) Successful in 1m18s
Check Deno code / Check Deno code (push) Successful in 5s
Tests / Unit tests (push) Successful in 11s
Tests / Integration tests (push) Successful in 1m13s
Check Deno code / Check Deno code (pull_request) Successful in 5s
Tests / Unit tests (pull_request) Successful in 12s
Tests / Integration tests (pull_request) Successful in 1m18s
Check Deno code / Check Deno code (push) Successful in 5s
Tests / Unit tests (push) Successful in 11s
Tests / Integration tests (push) Successful in 1m13s
This commit was merged in pull request #147.
This commit is contained in:
@@ -2,17 +2,17 @@
|
||||
|
||||
import { assertEquals, assertExists } from "@std/assert";
|
||||
import { makeEmployeeContext, makeGetRequest } from "../helpers/handler.ts";
|
||||
import {
|
||||
seedPermissions,
|
||||
truncateAll,
|
||||
} from "../helpers/db_integration.ts";
|
||||
import { seedPermissions, truncateAll } from "../helpers/db_integration.ts";
|
||||
import { handler as permissionsHandler } from "$apps/admin/api/permissions.ts";
|
||||
|
||||
const PERMISSIONS = [
|
||||
{ id: "note_read", nom: "Consulter les notes des étudiants" },
|
||||
{ id: "note_write", nom: "Saisir et modifier les notes" },
|
||||
{ id: "student_read", nom: "Consulter la liste des étudiants" },
|
||||
{ id: "student_write", nom: "Gérer les étudiants (ajout, modification, suppression)" },
|
||||
{
|
||||
id: "student_write",
|
||||
nom: "Gérer les étudiants (ajout, modification, suppression)",
|
||||
},
|
||||
{ id: "module_read", nom: "Consulter les modules et enseignements" },
|
||||
{ id: "module_write", nom: "Gérer les modules et enseignements" },
|
||||
{ id: "user_read", nom: "Consulter les utilisateurs et leurs rôles" },
|
||||
|
||||
Reference in New Issue
Block a user