From efda5122f717296a550c3013f54676aee0fa7e5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= Date: Thu, 2 Aug 2018 10:06:13 +0200 Subject: [PATCH] refactor names of tests of group.js --- scm-ui/src/groups/modules/groups.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: {