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

RoundingWell / care-ops-frontend / b077d963-4b6b-4ae1-81c6-5565bc6821fb

02 Oct 2025 07:29PM UTC coverage: 98.199% (-1.7%) from 99.927%
b077d963-4b6b-4ae1-81c6-5565bc6821fb

Pull #1524

circleci

nmajor25
In patient_app, clear action editing state in startRoute()

To fix bug where isEditing (adds .is-selected to list items) persists when navigating between pt dashboard & archive routes
Pull Request #1524: In `patient_app`, clear action `isEditing` state in `startRoute()`

1812 of 1869 branches covered (96.95%)

Branch coverage included in aggregate %.

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

87 existing lines in 15 files now uncovered.

6205 of 6295 relevant lines covered (98.57%)

235.34 hits per line

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

80.0
/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;
3,223✔
6
}
7

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

14
function getSortNum(val, defaultVal = -1) {
×
15
  return isNumber(val) ? val : defaultVal;
12!
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) {
6✔
24
  if (!a) a = nullVal;
6✔
25
  if (!b) b = nullVal;
6✔
26
  const sortVal = getSortNum(a, nullVal) > getSortNum(b, nullVal) ? 1 : -1;
6✔
27
  return sortByDir(sortDir, sortVal);
6✔
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