Renames
This commit is contained in:
parent
1283431b32
commit
d8473b4a23
2 changed files with 5 additions and 5 deletions
|
@ -98,7 +98,7 @@ describe("/permission", () => {
|
|||
level: PermissionLevel.READ,
|
||||
})
|
||||
|
||||
const response = await config.api.permission.create(
|
||||
const response = await config.api.permission.set(
|
||||
{
|
||||
roleId: STD_ROLE_ID,
|
||||
resourceId: table._id,
|
||||
|
@ -114,7 +114,7 @@ describe("/permission", () => {
|
|||
|
||||
describe("remove", () => {
|
||||
it("should be able to remove the permission", async () => {
|
||||
const res = await config.api.permission.remove({
|
||||
const res = await config.api.permission.revoke({
|
||||
roleId: STD_ROLE_ID,
|
||||
resourceId: table._id,
|
||||
level: PermissionLevel.READ,
|
||||
|
@ -131,7 +131,7 @@ describe("/permission", () => {
|
|||
level: PermissionLevel.READ,
|
||||
})
|
||||
|
||||
const response = await config.api.permission.remove(
|
||||
const response = await config.api.permission.revoke(
|
||||
{
|
||||
roleId: STD_ROLE_ID,
|
||||
resourceId: table._id,
|
||||
|
|
|
@ -18,7 +18,7 @@ export class PermissionAPI extends TestAPI {
|
|||
.expect(expectStatus)
|
||||
}
|
||||
|
||||
create = async (
|
||||
set = async (
|
||||
{
|
||||
roleId,
|
||||
resourceId,
|
||||
|
@ -34,7 +34,7 @@ export class PermissionAPI extends TestAPI {
|
|||
return res.body
|
||||
}
|
||||
|
||||
remove = async (
|
||||
revoke = async (
|
||||
{
|
||||
roleId,
|
||||
resourceId,
|
||||
|
|
Loading…
Reference in a new issue