webpack/scenes/Subscriptions/UpstreamSubscriptions/__tests__/UpstreamSubscriptionsReducer.test.js in katello-3.7.1.1 vs webpack/scenes/Subscriptions/UpstreamSubscriptions/__tests__/UpstreamSubscriptionsReducer.test.js in katello-3.8.0.rc1

- old
+ new

@@ -35,28 +35,23 @@ }); it('should have error on UPSTREAM_SUBSCRIPTIONS_FAILURE', () => { expect(reducer(initialState, { type: types.UPSTREAM_SUBSCRIPTIONS_FAILURE, - payload: { - message: 'Unable to process request.', - }, + error: '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_FAILURE', () => { + it('should have error on SAVE_UPSTREAM_SUBSCRIPTIONS_SUCCESS', () => { expect(reducer(initialSaveState, { type: types.SAVE_UPSTREAM_SUBSCRIPTIONS_FAILURE, - payload: { - message: 'Unable to process request.', - result: errorResult, - }, + result: errorResult, })).toEqual(saveErrorState); }); });