webpack/scenes/Subscriptions/UpstreamSubscriptions/__tests__/UpstreamSubscriptionsReducer.test.js in katello-3.7.0.rc2 vs webpack/scenes/Subscriptions/UpstreamSubscriptions/__tests__/UpstreamSubscriptionsReducer.test.js in katello-3.7.0
- old
+ new
@@ -35,23 +35,28 @@
});
it('should have error on UPSTREAM_SUBSCRIPTIONS_FAILURE', () => {
expect(reducer(initialState, {
type: types.UPSTREAM_SUBSCRIPTIONS_FAILURE,
- error: 'Unable to process request.',
+ payload: {
+ message: 'Unable to process request.',
+ },
})).toEqual(errorState);
});
it('should flatten response SAVE_UPSTREAM_SUBSCRIPTIONS_SUCCESS', () => {
expect(reducer(initialSaveState, {
type: types.SAVE_UPSTREAM_SUBSCRIPTIONS_SUCCESS,
response: taskSuccessResponse,
})).toEqual(saveSuccessState);
});
- it('should have error on SAVE_UPSTREAM_SUBSCRIPTIONS_SUCCESS', () => {
+ it('should have error on SAVE_UPSTREAM_SUBSCRIPTIONS_FAILURE', () => {
expect(reducer(initialSaveState, {
type: types.SAVE_UPSTREAM_SUBSCRIPTIONS_FAILURE,
- result: errorResult,
+ payload: {
+ message: 'Unable to process request.',
+ result: errorResult,
+ },
})).toEqual(saveErrorState);
});
});