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

npm / cli / #2011
97%
latest: 97%

Build:
Build:
LAST BUILD BRANCH: nlf/arborist-validation
DEFAULT BRANCH: latest
Ran 07 May 2021 01:02AM UTC
Jobs 1
Files 122
Run time 20s
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
#2011

push

isaacs
Avoid locale-specific string sorting issues

This adds the 'en' locale to all instances of String.localeCompare
within the CLI codebase.

Tests added for the cases where we're sorting arbitrary user-generated
data.  The tests rely on the fact that 'ch' sorts after 'd' in the
`'sk'` locale, but ahead of `'d'` in the `'en'` locale.  To ensure that
this is the default behavior if no locale is specified, `LC_ALL=sk` is
set in the test environment.

Other instances of `localeCompare` sort data that the cli controls, so
no tests were added.

Re: https://github.com/npm/cli/issues/2829

2997 of 3104 branches covered (96.55%)

Branch coverage included in aggregate %.

9 of 9 new or added lines in 7 files covered. (100.0%)

5183 of 5345 relevant lines covered (96.97%)

22.78 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #2011.1 07 May 2021 01:02AM UTC 0
96.82
Source Files on build #2011
Detailed source file information is not available for this build.
  • Back to Repo
  • 1a759f97 on github
  • Prev Build on isaacs/locale-compare-en
  • Next Build on isaacs/locale-compare-en
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