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

chartjs / Chart.js / 13029395157
97%

Build:
DEFAULT BRANCH: master
Ran 29 Jan 2025 10:35AM UTC
Jobs 2
Files 74
Run time 1min
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

29 Jan 2025 10:32AM UTC coverage: 97.001%. Remained the same
13029395157

push

github

web-flow
Type fixes for time adapters (#12010)

Specific changes:

* `formats` is defined as an arbitrary record.  In practice, it maps from `TimeUnit` and `'datetime'` to the specific date library's format strings.
* `parse` and `format` were defined as requiring `TimeUnit`, but they actually take date library format strings.  (E.g., it's up to the caller to look up format strings via `formats()` or user parameters.)
* `endOf` is never passed `isoWeek` (`isoWeek` isn't a normal `TimeUnit`, it's only used as a special case to `startOf`), and [chartjs-adapter-date-fns](https://github.com/chartjs/chartjs-adapter-date-fns/blob/v3.0.0/src/index.js#L101) doesn't support it.
* The constructor's options parameter is optional.
* `weekday` is documented as allowing a boolean (true means to start on Monday).
* `export default { _date: DateAdapterBase }` meant that `new _date()` returns a `DateAdapterBase` instance, whose methods take no parameters.  Since it can be overridden at runtime, I replaced it with a more generic constructor + static methods.

3460 of 3718 branches covered (93.06%)

7406 of 7635 relevant lines covered (97.0%)

82145.83 hits per line

Jobs
ID Job ID Ran Files Coverage
1 ubuntu-latest-chrome - 13029395157.1 29 Jan 2025 10:35AM UTC 74
97.0
GitHub Action Run
2 ubuntu-latest-firefox - 13029395157.2 29 Jan 2025 10:35AM UTC 74
97.0
GitHub Action Run
Source Files on build 13029395157
  • Tree
  • List 74
  • Changed 38
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • f744621c on github
  • Prev Build on master (#12620463281)
  • Next Build on master (#13049356112)
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