Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rewards-integration - new action signal names #82

Merged
lint
  • Loading branch information
trickpattyFH20 committed May 25, 2018
commit c2d8200ab3d0fd6e4f635469f0d291b20e943b88
@@ -95,7 +95,12 @@ describe('app/panel/actions/RewardsActions.js', () => {
const offerId = 'offer_id';
const origin = 'rewards-hub';
const type = 'offer-action-signal';
const expectedPayload = { data: { actionId, offerId, origin, type }, type: SEND_SIGNAL };
const expectedPayload = {
data: {
actionId, offerId, origin, type
},
type: SEND_SIGNAL
};
store.dispatch(rewardsActions.sendSignal(actionId, offerId));

const actions = store.getActions();
@@ -110,7 +115,12 @@ describe('app/panel/actions/RewardsActions.js', () => {
const offerId = undefined;
const origin = 'rewards-hub';
const type = 'action-signal';
const expectedPayload = { data: { actionId, offerId, origin, type }, type: SEND_SIGNAL };
const expectedPayload = {
data: {
actionId, offerId, origin, type
},
type: SEND_SIGNAL
};
store.dispatch(rewardsActions.sendSignal(actionId));

const actions = store.getActions();
ProTip! Use n and p to navigate between commits in a pull request.