diff --git a/scm-ui/src/groups/modules/groups.test.js b/scm-ui/src/groups/modules/groups.test.js index e8b1c1da38..634afdb0f7 100644 --- a/scm-ui/src/groups/modules/groups.test.js +++ b/scm-ui/src/groups/modules/groups.test.js @@ -398,7 +398,7 @@ describe("selector tests", () => { expect(selectListAsCollection(state)).toBe(collection); }); - it("should return false", () => { + it("should return false when groupCreatePermission is false", () => { expect(isPermittedToCreateGroups({})).toBe(false); expect(isPermittedToCreateGroups({ groups: { list: { entry: {} } } })).toBe( false @@ -410,7 +410,7 @@ describe("selector tests", () => { ).toBe(false); }); - it("should return true", () => { + it("should return true when groupCreatePermission is true", () => { const state = { groups: { list: {