Updated tests to have no redirect to homes (#8494)

This commit is contained in:
Keith Holliday
2017-02-16 16:33:49 -07:00
committed by GitHub
parent 2f9ff92cbd
commit e37ad420ce
6 changed files with 30 additions and 10 deletions
@@ -31,7 +31,7 @@ describe('payments : paypal #checkout', () => {
balance: 2,
});
await user.get(endpoint);
await user.get(`${endpoint}?noRedirect=true`);
expect(checkoutStub).to.be.calledOnce;
expect(checkoutStub.args[0][0].gift).to.eql(undefined);
@@ -53,7 +53,7 @@ describe('payments : paypal #checkoutSuccess', () => {
balance: 2,
});
await user.get(`${endpoint}?PayerID=${customerId}&paymentId=${paymentId}`);
await user.get(`${endpoint}?PayerID=${customerId}&paymentId=${paymentId}&noRedirect=true`);
expect(checkoutSuccessStub).to.be.calledOnce;
@@ -44,7 +44,7 @@ describe('payments : paypal #subscribe', () => {
balance: 2,
});
await user.get(`${endpoint}?sub=${subKey}`);
await user.get(`${endpoint}?sub=${subKey}&noRedirect=true`);
expect(subscribeStub).to.be.calledOnce;
@@ -41,7 +41,7 @@ describe('payments : paypal #subscribeCancel', () => {
balance: 2,
});
await user.get(endpoint);
await user.get(`${endpoint}?noRedirect=true`);
expect(subscribeCancelStub).to.be.calledOnce;
@@ -42,7 +42,7 @@ describe('payments : paypal #subscribeSuccess', () => {
balance: 2,
});
await user.get(`${endpoint}?token=${token}`);
await user.get(`${endpoint}?token=${token}&noRedirect=true`);
expect(subscribeSuccessStub).to.be.calledOnce;