mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-15 05:53:03 +00:00
130: fixed test description mistakes
This commit is contained in:
@@ -24,7 +24,7 @@ describe('ObjectCacheEffects', () => {
|
||||
|
||||
describe('fixTimestampsOnRehydrate$', () => {
|
||||
|
||||
it('should return a RESET_TIMESTAMPS action in response to an REHYDRATE action to a new route', () => {
|
||||
it('should return a RESET_TIMESTAMPS action in response to a REHYDRATE action', () => {
|
||||
spyOn(Date.prototype, 'getTime').and.callFake(() => {
|
||||
return timestamp;
|
||||
});
|
||||
|
@@ -24,7 +24,7 @@ describe('ResponseCacheEffects', () => {
|
||||
|
||||
describe('fixTimestampsOnRehydrate$', () => {
|
||||
|
||||
it('should return a RESET_TIMESTAMPS action in response to an REHYDRATE action to a new route', () => {
|
||||
it('should return a RESET_TIMESTAMPS action in response to an REHYDRATE action', () => {
|
||||
spyOn(Date.prototype, 'getTime').and.callFake(() => {
|
||||
return timestamp;
|
||||
});
|
||||
|
@@ -55,7 +55,7 @@ describe('requestReducer', () => {
|
||||
expect(newState[link2].completed).toEqual(false);
|
||||
});
|
||||
|
||||
it('should set \'requestPending\' to false, \'responsePending\' to false and leave \'completed\' untouched for the given RestRequest in the state, in response to an EXECUTE action', () => {
|
||||
it('should set \'requestPending\' to false, \'responsePending\' to true and leave \'completed\' untouched for the given RestRequest in the state, in response to an EXECUTE action', () => {
|
||||
const state = testState;
|
||||
|
||||
const action = new RequestExecuteAction(link1);
|
||||
@@ -66,7 +66,7 @@ describe('requestReducer', () => {
|
||||
expect(newState[link1].responsePending).toEqual(true);
|
||||
expect(newState[link1].completed).toEqual(state[link1].completed);
|
||||
});
|
||||
it('should leave \'requestPending\' untouched, set \'responsePending\' to false and \'completed\' to false for the given RestRequest in the state, in response to a COMPLETE action', () => {
|
||||
it('should leave \'requestPending\' untouched, set \'responsePending\' to false and \'completed\' to true for the given RestRequest in the state, in response to a COMPLETE action', () => {
|
||||
const state = testState;
|
||||
|
||||
const action = new RequestCompleteAction(link1);
|
||||
|
@@ -45,7 +45,7 @@ describe('requestReducer', () => {
|
||||
expect(newState[uuid2]).toEqual(link2);
|
||||
});
|
||||
|
||||
it('should remove the given \'href\' from it\'s corresponding \'uuid\' in the state, in response to a REMOVE_HREF action', () => {
|
||||
it('should remove the given \'href\' from its corresponding \'uuid\' in the state, in response to a REMOVE_HREF action', () => {
|
||||
const state = testState;
|
||||
|
||||
const action = new RemoveHrefFromUUIDIndexAction(link1);
|
||||
|
Reference in New Issue
Block a user