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

CenterForOpenScience / ember-osf-web / 12303026020

12 Dec 2024 07:02PM UTC coverage: 64.78% (-0.1%) from 64.91%
12303026020

Pull #2421

github

web-flow
Merge 777dd6696 into f41bc9ac2
Pull Request #2421: [ENG-6665] Add user messaging modal to user's tab on institutional dashboard

2738 of 4645 branches covered (58.95%)

Branch coverage included in aggregate %.

2 of 28 new or added lines in 2 files covered. (7.14%)

19 existing lines in 1 file now uncovered.

6970 of 10341 relevant lines covered (67.4%)

200.85 hits per line

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

33.33
/app/adapters/user-message.ts
1
// app/adapters/user-message.js
2
import { inject as service } from '@ember/service';
3
import config from 'ember-osf-web/config/environment';
4
const { OSF: { apiUrl } } = config;
1✔
5
import OsfAdapter from './osf-adapter';
6

7
export default class UserMessageAdapter extends OsfAdapter {
8
    @service session;
9
    urlForCreateRecord(modelName, snapshot) {
NEW
10
        const userId = snapshot.record.user;
×
NEW
11
        return `${apiUrl}/v2/users/${userId}/messages/`;
×
12
    }
13
}
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

© 2025 Coveralls, Inc