mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-17 10:41:06 +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" }]);
|
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", () => {
|
it("should return true, when fetch groups is pending", () => {
|
||||||
const state = {
|
const state = {
|
||||||
pending: {
|
pending: {
|
||||||
|
|||||||
Reference in New Issue
Block a user