fixed failing selector test

This commit is contained in:
Sebastian Sdorra
2018-07-30 13:41:42 +02:00
parent 7be1366c1a
commit a9ca309b39

View File

@@ -418,14 +418,19 @@ describe("selector tests", () => {
});
it("should return a state slice collection", () => {
const collection = {
page: 3,
totalPages: 42
};
const state = {
users: {
list: {
loading: false
entry: collection
}
}
};
expect(selectListAsCollection(state)).toEqual({ loading: false });
expect(selectListAsCollection(state)).toBe(collection);
});
it("should return false", () => {