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

Pricing tests #24

Merged
merged 1 commit into from
Feb 7, 2020
Merged

Pricing tests #24

merged 1 commit into from
Feb 7, 2020

Conversation

dbrudner
Copy link
Contributor

These tests only cover the subscriptions interface inside useCheckoutPricing and base functionality.

After this is merged, I'll open up additional PRs to cover the rest of the interface.

Totally open to feedback and willing to change anything.

jest.setup.js Show resolved Hide resolved
@github-actions
Copy link
Contributor

Pull Request Test Coverage Report for Build e94e558897e70d953ee086f40a93ab8318ac0190-PR-24

  • 4 of 4 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+22.1%) to 72.483%

Totals Coverage Status
Change from base Build 24869dbc1185ce9841cdb1b6b80434e6a0dbab13: 22.1%
Covered Lines: 82
Relevant Lines: 112

💛 - Coveralls

package.json Outdated Show resolved Hide resolved
@dbrudner dbrudner force-pushed the pricing-tests branch 4 times, most recently from e23cbda to c6a66b3 Compare February 3, 2020 16:41
test/use-checkout-pricing.test.js Show resolved Hide resolved
test/use-checkout-pricing.test.js Outdated Show resolved Hide resolved
test/use-checkout-pricing.test.js Show resolved Hide resolved
test/use-checkout-pricing.test.js Show resolved Hide resolved
test/use-checkout-pricing.test.js Show resolved Hide resolved
cb();
return checkoutPricingReturn;
}),
giftcard: jest.fn(() => checkoutPricingReturn),
Copy link
Member

@chrissrogers chrissrogers Feb 7, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this needs to be giftCard

Copy link
Contributor Author

@dbrudner dbrudner Feb 7, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The method right now is giftcard coming back from PRICING_METHODS, I know there's a PR to deprecate this in favor of giftCard, should we switch to use this method instead? recurly/recurly-js#580

image

@chrissrogers chrissrogers merged commit 309ad5c into release/pricing Feb 7, 2020
@chrissrogers chrissrogers deleted the pricing-tests branch February 7, 2020 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants