mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-17 02:31:14 +01:00
Added unit test
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user