1
0
Fork 0
mirror of synced 2024-09-30 00:57:16 +13:00

Lint test

This commit is contained in:
Adria Navarro 2024-03-12 08:56:56 +01:00
parent e754c660ee
commit b2000c0805

View file

@ -103,18 +103,15 @@ describe("/api/global/groups", () => {
expect(events.group.updated).toBeCalledTimes(1)
expect(events.group.permissionsEdited).not.toBeCalled()
})
})
describe("destroy", () => {
it("should be able to delete a basic group", async () => {
const group = structures.groups.UserGroup()
let oldGroup = await config.api.groups.saveGroup(group)
await config.api.groups.deleteGroup(
oldGroup.body._id,
oldGroup.body._rev
)
describe("destroy", () => {
it("should be able to delete a basic group", async () => {
const group = structures.groups.UserGroup()
let oldGroup = await config.api.groups.saveGroup(group)
await config.api.groups.deleteGroup(oldGroup.body._id, oldGroup.body._rev)
expect(events.group.deleted).toBeCalledTimes(1)
})
expect(events.group.deleted).toBeCalledTimes(1)
})
})