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

cofacts / rumors-line-bot / 13617472365

02 Mar 2025 09:20AM UTC coverage: 90.761% (-0.2%) from 90.989%
13617472365

push

github

web-flow
Merge pull request #403 from cofacts/network0error-handling

Handle network errors

541 of 641 branches covered (84.4%)

Branch coverage included in aggregate %.

12 of 18 new or added lines in 6 files covered. (66.67%)

1 existing line in 1 file now uncovered.

1129 of 1199 relevant lines covered (94.16%)

12.42 hits per line

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

66.67
/src/graphql/resolvers/Query.js
1
import UserArticleLink from 'src/database/models/userArticleLink';
2
import UserSettings from 'src/database/models/userSettings';
3
import AppVariable from 'src/database/models/appVariable';
4
import { groupEventQueue, expiredGroupEventQueue } from 'src/lib/queues';
5
import { processConnection } from '../utils/connection';
6

7
export default {
8
  insights() {
9
    // Resolvers in next level
10
    return {};
3✔
11
  },
12

13
  queue() {
14
    return [groupEventQueue, expiredGroupEventQueue];
2✔
15
  },
16

17
  setting(root, args, context) {
18
    const { userId } = context;
2✔
19
    return UserSettings.findOrInsertByUserId(userId);
2✔
20
  },
21

22
  userArticleLinks(root, args, { userId }) {
23
    const orderBy = args.orderBy || { createdAt: -1 };
5✔
24
    return processConnection(UserArticleLink, {
5✔
25
      ...args,
26
      filter: { userId },
27
      orderBy,
28
    });
29
  },
30

31
  async isMgpAwardee(root, args, { userId }) {
32
    const awardees = (await AppVariable.get('mgpAwardees')) || [];
×
33

34
    return awardees.includes(userId);
×
35
  },
36
};
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