mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 07:25:44 +01:00
fixed failing selector test
This commit is contained in:
@@ -418,14 +418,19 @@ describe("selector tests", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("should return a state slice collection", () => {
|
it("should return a state slice collection", () => {
|
||||||
|
const collection = {
|
||||||
|
page: 3,
|
||||||
|
totalPages: 42
|
||||||
|
};
|
||||||
|
|
||||||
const state = {
|
const state = {
|
||||||
users: {
|
users: {
|
||||||
list: {
|
list: {
|
||||||
loading: false
|
entry: collection
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
expect(selectListAsCollection(state)).toEqual({ loading: false });
|
expect(selectListAsCollection(state)).toBe(collection);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should return false", () => {
|
it("should return false", () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user