Skip to content

Commit

Permalink
remove .only and fix indent
Browse files Browse the repository at this point in the history
  • Loading branch information
wsethbrown committed Nov 3, 2023
1 parent d2d238e commit 0669732
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions test/unit/pricing/checkout/checkout.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit 0669732

Please sign in to comment.