mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-16 14:33:03 +00:00
requestCacheReducer docs & tests
This commit is contained in:
@@ -95,9 +95,11 @@ describe("objectCacheReducer", () => {
|
||||
});
|
||||
|
||||
it("shouldn't do anything in response to the REMOVE action for an object that isn't cached", () => {
|
||||
const action = new RemoveFromObjectCacheAction("this isn't cached");
|
||||
const wrongKey = "this isn't cached";
|
||||
const action = new RemoveFromObjectCacheAction(wrongKey);
|
||||
const newState = objectCacheReducer(testState, action);
|
||||
|
||||
expect(testState[wrongKey]).toBeUndefined();
|
||||
expect(newState).toEqual(testState);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user