|
|
@@ -893,31 +893,6 @@ describe('RecurlyWrapper', function () {
|
|
|
this.createSubscription.callCount.should.equal(0)
|
|
|
})
|
|
|
})
|
|
|
-
|
|
|
- it('throw error if purchase with addon', async function () {
|
|
|
- this.subscriptionDetails = {
|
|
|
- currencyCode: 'EUR',
|
|
|
- plan_code: 'some_plan_code',
|
|
|
- coupon_code: '',
|
|
|
- isPaypal: true,
|
|
|
- address: {
|
|
|
- address1: 'addr_one',
|
|
|
- address2: 'addr_two',
|
|
|
- country: 'some_country',
|
|
|
- state: 'some_state',
|
|
|
- zip: 'some_zip',
|
|
|
- },
|
|
|
- subscription_add_ons: [
|
|
|
- { subscription_add_on: { add_on_code: 'test_add_on', quantity: 2 } },
|
|
|
- ],
|
|
|
- }
|
|
|
- await expect(this.call()).to.be.rejected
|
|
|
- this.checkAccountExists.callCount.should.equal(0)
|
|
|
- this.createAccount.callCount.should.equal(0)
|
|
|
- this.createBillingInfo.callCount.should.equal(0)
|
|
|
- this.setAddressAndCompanyBillingInfo.callCount.should.equal(0)
|
|
|
- this.createSubscription.callCount.should.equal(0)
|
|
|
- })
|
|
|
})
|
|
|
|
|
|
describe('paypal actions', function () {
|