Skip to content

Add tests for Bookreader/utils.test.js - #1590

Open
duggiefresh wants to merge 2 commits into
internetarchive:masterfrom
duggiefresh:update-bookreader-utils-test
Open

duggiefresh wants to merge 2 commits into
internetarchive:masterfrom
duggiefresh:update-bookreader-utils-test

Conversation

@duggiefresh

Copy link
Copy Markdown
Contributor

This adds missing tests for a handful of Bookreader/utils functions.

Adds tests for:

  • arrChanged
  • arrEquals
  • calcScreenDPI
  • disableSelect
  • genToArray
  • getIFrameDocument
  • notInArray
  • sortBy
  • sum
  • throttle

This adds missing tests for a handful of `Bookreader/utils` functions.

Adds tests for:
* `arrChanged`
* `arrEquals`
* `calcScreenDPI`
* `disableSelect`
* `genToArray`
* `getIFrameDocument`
* `notInArray`
* `sortBy`
* `sum`
* `throttle`
@codecov

codecov Bot commented Aug 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 63.93%. Comparing base (18c1983) to head (10d3648).
⚠️ Report is 6 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1590      +/-   ##
==========================================
+ Coverage   63.81%   63.93%   +0.12%     
==========================================
  Files          69       69              
  Lines        6256     6256              
  Branches     1391     1391              
==========================================
+ Hits         3992     4000       +8     
+ Misses       2225     2217       -8     
  Partials       39       39              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

1 participant