Refactor part 1

This commit is contained in:
Aslan 2026-01-05 16:07:30 +01:00
parent c07d33bcc9
commit e21a807fb3
11 changed files with 71 additions and 146 deletions

View file

@ -279,10 +279,7 @@ test("can get roles", async () => {
});
test("can get permissions", async () => {
const response = await apiGet(
`role/${state.roleId}/permissions`,
state.token2,
);
const response = await apiGet(`role/${state.roleId}`, state.token2);
assert.equal(response.id, state.roleId);
assert.equal(response.name, state.roleName);