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

refactor(tests): Simplify tests for RoutePropertiesCard #2610

Merged
merged 1 commit into from
May 20, 2024

Conversation

joshlarson
Copy link
Contributor

@joshlarson joshlarson commented May 20, 2024

I noticed that a lot of the tests for <RoutePropertiesCard /> had to initialize a bunch of props that those tests didn't really care about. That cluttered up the tests and made it harder to tell what the tests actually cared about, so I copied a pattern I saw in the <DetourMap /> tests.

@joshlarson joshlarson requested a review from a team as a code owner May 20, 2024 16:49
@joshlarson joshlarson force-pushed the jdl/tests/simplify-rpc-tests branch from 6b171e7 to d12f582 Compare May 20, 2024 16:59
Copy link

Coverage of commit d12f582

Summary coverage rate:
  lines......: 93.7% (3247 of 3465 lines)
  functions..: 73.3% (1340 of 1828 functions)
  branches...: no data found

Files changed coverage rate: n/a

Download coverage report

@joshlarson joshlarson force-pushed the jdl/tests/simplify-rpc-tests branch from d12f582 to 47d3d4b Compare May 20, 2024 17:09
Copy link

Coverage of commit 47d3d4b

Summary coverage rate:
  lines......: 93.6% (3242 of 3465 lines)
  functions..: 73.4% (1341 of 1828 functions)
  branches...: no data found

Files changed coverage rate: n/a

Download coverage report

Copy link
Collaborator

@hannahpurcell hannahpurcell left a comment

Choose a reason for hiding this comment

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

Ok! Checks out

@joshlarson joshlarson changed the base branch from jdl/stories/story-for-route-properties-card to main May 20, 2024 18:41
@joshlarson joshlarson force-pushed the jdl/tests/simplify-rpc-tests branch from 47d3d4b to d75281d Compare May 20, 2024 18:42
@joshlarson joshlarson enabled auto-merge (squash) May 20, 2024 18:42
@joshlarson joshlarson merged commit 2a6c304 into main May 20, 2024
9 checks passed
@joshlarson joshlarson deleted the jdl/tests/simplify-rpc-tests branch May 20, 2024 18:47
Copy link

Coverage of commit d75281d

Summary coverage rate:
  lines......: 93.6% (3242 of 3465 lines)
  functions..: 73.4% (1341 of 1828 functions)
  branches...: no data found

Files changed coverage rate: n/a

Download coverage report

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.

2 participants