diff --git a/scm-ui/src/groups/modules/groups.test.js b/scm-ui/src/groups/modules/groups.test.js index 664f4d1969..e8b1c1da38 100644 --- a/scm-ui/src/groups/modules/groups.test.js +++ b/scm-ui/src/groups/modules/groups.test.js @@ -435,9 +435,14 @@ describe("selector tests", () => { } } }; + expect(getGroupsFromState(state)).toEqual([{ name: "a" }, { name: "b" }]); }); + it("should return null when there are no groups in the state", () => { + expect(getGroupsFromState({})).toBe(null) + }); + it("should return true, when fetch groups is pending", () => { const state = { pending: {