130: fixed test description mistakes

This commit is contained in:
Lotte Hofstede
2017-12-01 10:08:52 +01:00
parent 4b94f8bb4d
commit aca0bca694
4 changed files with 5 additions and 5 deletions

View File

@@ -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;
});

View File

@@ -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;
});

View File

@@ -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);

View File

@@ -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);