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

RoundingWell / care-ops-frontend / 0ae149a1-b0df-4e88-b3f2-c5bc67586dde

18 May 2026 08:23PM UTC coverage: 97.531% (-2.4%) from 99.975%
0ae149a1-b0df-4e88-b3f2-c5bc67586dde

Pull #1693

circleci

nmajor25
chore(dashboards): route embedding through care-ops-quicksight package
Pull Request #1693: Move QuickSight embedding behind a workspace package

1802 of 1880 branches covered (95.85%)

Branch coverage included in aggregate %.

1 of 1 new or added line in 1 file covered. (100.0%)

119 existing lines in 19 files now uncovered.

5980 of 6099 relevant lines covered (98.05%)

259.93 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

73.33
/src/js/utils/sorting.js
1
import { isNumber } from 'underscore';
2

3
// negates based on sort direction a sortable value
4
function sortByDir(sortDirection, sortableVal) {
5
  return (sortDirection === 'desc') ? (sortableVal * -1) : sortableVal;
2,757✔
6
}
7

8
function alphaSort(sortDir, a, b, nullVal = '') {
2,553✔
9
  if (!a) a = nullVal;
2,753✔
10
  if (!b) b = nullVal;
2,753✔
11
  return sortByDir(sortDir, a.localeCompare(b));
2,753✔
12
}
13

14
function getSortNum(val, defaultVal = -1) {
×
15
  return isNumber(val) ? val : defaultVal;
8!
16
}
17

18
function numSortBy(sortDir, val, nullVal) {
UNCOV
19
  const num = getSortNum(val, nullVal);
×
UNCOV
20
  return sortByDir(sortDir, num);
×
21
}
22

23
function numSort(sortDir, a, b, nullVal = Number.NEGATIVE_INFINITY) {
4✔
24
  if (!a) a = nullVal;
4✔
25
  if (!b) b = nullVal;
4!
26
  const sortVal = getSortNum(a, nullVal) > getSortNum(b, nullVal) ? 1 : -1;
4!
27
  return sortByDir(sortDir, sortVal);
4✔
28
}
29

30
function intSortBy(sortDir, val, nullVal) {
UNCOV
31
  const int = getSortNum(val, nullVal);
×
UNCOV
32
  return sortByDir(sortDir, parseInt(int, 10));
×
33
}
34

35
export {
36
  alphaSort,
37
  intSortBy,
38
  numSortBy,
39
  numSort,
40
};
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