Refactor part 1
This commit is contained in:
parent
c07d33bcc9
commit
e21a807fb3
11 changed files with 71 additions and 146 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue