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

ParaTimes: unit tests #978

Merged
merged 1 commit into from
Sep 2, 2022
Merged

Conversation

buberdds
Copy link
Contributor

@buberdds buberdds commented Aug 23, 2022

Tests around

  • form steps components/ unmocking react-i18next in a few tests to validate conditional interpolation
  • paraTime saga
  • useParaTimesNavigation
  • useParaTimes

PR adds:

  • restriction around paratime route

@buberdds buberdds changed the title Paratimes fees section and tests ParaTimes: fees section and tests Aug 23, 2022
@buberdds buberdds requested a review from lukaw3d August 23, 2022 11:48
@buberdds buberdds force-pushed the paratimes-ui-3 branch 2 times, most recently from a0e975d to 8795a89 Compare August 26, 2022 07:04
@buberdds buberdds changed the title ParaTimes: fees section and tests ParaTimes: unit tests Aug 26, 2022
@buberdds buberdds force-pushed the paratimes-ui-3 branch 4 times, most recently from 889c39f to e9ba2a9 Compare August 26, 2022 16:27
render(<TransactionAmount />)

userEvent.click(screen.getByRole('button', { name: 'MAX' }))
expect(setTransactionForm).toHaveBeenCalledWith(expect.objectContaining({ amount: '1' }))
Copy link
Member

Choose a reason for hiding this comment

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

Can you add precision tests with 1563114365108133939632n

Copy link
Member

Choose a reason for hiding this comment

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

2493300888889 isn't enough :D js numbers have that precision

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated in the second PR

src/app/useRouteHelper.tsx Outdated Show resolved Hide resolved
@buberdds buberdds merged commit b1ba47c into oasisprotocol:paratimes Sep 2, 2022
@buberdds buberdds mentioned this pull request Sep 14, 2022
buberdds added a commit to buberdds/oasis-wallet-web that referenced this pull request Oct 25, 2022
lukaw3d added a commit that referenced this pull request Oct 25, 2022
buberdds added a commit to buberdds/oasis-wallet-web that referenced this pull request Oct 25, 2022
buberdds pushed a commit to buberdds/oasis-wallet-web that referenced this pull request Oct 26, 2022
lukaw3d added a commit that referenced this pull request Oct 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants