• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Khan / perseus / 5146508019
44%
main: 69%

Build:
Build:
LAST BUILD BRANCH: LC-1092
DEFAULT BRANCH: main
Ran 01 Jun 2023 03:56PM UTC
Jobs 2
Files 520
Run time 43s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
5146508019

push

github

web-flow
Extract the weird, implicit numeric coercion + unlimited code to a properly tested function (#559)

## Summary:

Matthew [noted(https://github.com/Khan/perseus/pull/555#discussion_r1212317182) in #555 that I'd brought back some code that was pretty obscure and dependended on several Javascript coercion rules.

So this PR extracts the two identical instances where we do this and creates a function to formalize the behaviour. I've also added tests to ensure it's working as we think it should. :fingers-crossed:

Issue: LC-813

## Test plan:

`yarn test`

Author: jeremywiebe

Reviewers: handeyeco

Required Reviewers:

Approved By: handeyeco

Checks: ✅ finish_coverage, ✅ gerald, ✅ Extract i18n strings (ubuntu-latest, 16.x), ⏭  Publish npm snapshot, ✅ Lint, Typecheck, and Test (ubuntu-latest, 16.x), ✅ Cypress Coverage (ubuntu-latest, 16.x), ✅ Check builds for changes in size (ubuntu-latest, 16.x), ✅ Jest Coverage (ubuntu-latest, 16.x), ✅ Check for .changeset file (ubuntu-latest, 16.x), ✅ gerald

Pull Request URL: https://github.com/Khan/perseus/pull/559

7226 of 16237 branches covered (44.5%)

Branch coverage included in aggregate %.

19971 of 45877 relevant lines covered (43.53%)

970.56 hits per line

Subprojects
ID Flag name Job ID Ran Files Coverage
1 cypress 5146508019.1 01 Jun 2023 03:56PM UTC 362
25.53
GitHub Action Run
2 jest 5146508019.2 01 Jun 2023 04:04PM UTC 516
60.67
GitHub Action Run
Source Files on build 5146508019
  • Tree
  • List 520
  • Changed 17
  • Source Changed 0
  • Coverage Changed 17
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 67f2b459 on github
  • Prev Build on feature/interactive-graph-editor (#5138078206)
  • Next Build on feature/interactive-graph-editor (#5146671386)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc