diff --git a/test/unit/pricing/checkout/checkout.test.js b/test/unit/pricing/checkout/checkout.test.js index d196f53b4..e975eac1d 100644 --- a/test/unit/pricing/checkout/checkout.test.js +++ b/test/unit/pricing/checkout/checkout.test.js @@ -1750,23 +1750,23 @@ describe('CheckoutPricing', function () { }); describe('when a coupon is applied', () => { - beforeEach(function () { - return this.pricing.coupon('coop-pct-all'); - }); + beforeEach(function () { + return this.pricing.coupon('coop-pct-all'); + }); - it('taxes the discounted subtotal', function (done) { - this.pricing - .reprice() - .done(price => { - // 8.75% of taxable amount: 21.99 (sub) + 40 (adj) - 9 (discount) = 52.99 - assert.equal(price.now.taxes, '4.64'); - // 8.75% of taxable amount: 19.99 (sub) - 3 (discount) = 16.99 - assert.equal(price.next.taxes, '1.49'); - done(); - }); + it('taxes the discounted subtotal', function (done) { + this.pricing + .reprice() + .done(price => { + // 8.75% of taxable amount: 21.99 (sub) + 40 (adj) - 9 (discount) = 52.99 + assert.equal(price.now.taxes, '4.64'); + // 8.75% of taxable amount: 19.99 (sub) - 3 (discount) = 16.99 + assert.equal(price.next.taxes, '1.49'); + done(); + }); }); - describe.only('is single-use and applies to subscriptions and adjustments with taxes', () => { + describe('is single-use and applies to subscriptions and adjustments with taxes', () => { beforeEach(applyCoupon('coop-single-use')); it('discounts only the subscriptions now, and applies no discounts next cycle', function () {