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

backspace / prison-rideshare-ui / 17895076877

21 Sep 2025 02:44PM UTC coverage: 84.013% (+0.3%) from 83.746%
17895076877

Pull #190

github

web-flow
Merge bdcc15f65 into b55ecf3d2
Pull Request #190: Update to classes

260 of 336 branches covered (77.38%)

Branch coverage included in aggregate %.

365 of 417 new or added lines in 55 files covered. (87.53%)

5 existing lines in 3 files now uncovered.

791 of 915 relevant lines covered (86.45%)

24.51 hits per line

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

62.5
/app/adapters/commitment.js
1
/* eslint-disable ember/no-get */
2
import classic from 'ember-classic-decorator';
3
import { computed } from '@ember/object';
4
import { inject as service } from '@ember/service';
5
import ApplicationAdapter from './application';
6

7
@classic
8
export default class Commitment extends ApplicationAdapter {
9
  @service
10
  router;
11

12
  onAdminCalendar = computed.equal('router.currentRouteName', 'admin-calendar');
9✔
13

14
  get headers() {
15
    if (this.onAdminCalendar) {
18!
16
      const token = this.get('session.data.authenticated.access_token');
18✔
17
      return {
18✔
18
        Authorization: `Bearer ${token}`,
19
      };
20
    } else {
UNCOV
21
      const personToken = localStorage.getItem('person-token');
×
UNCOV
22
      return {
×
23
        Authorization: `Person Bearer ${personToken}`,
24
      };
25
    }
26
  }
27
}
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