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

hicommonwealth / commonwealth / 13845955660

13 Mar 2025 10:37PM UTC coverage: 43.588% (-1.1%) from 44.638%
13845955660

Pull #11430

github

web-flow
Merge 384ed128b into 54d5b089a
Pull Request #11430: Allow delete contest

1384 of 3534 branches covered (39.16%)

Branch coverage included in aggregate %.

1 of 9 new or added lines in 1 file covered. (11.11%)

219 existing lines in 24 files now uncovered.

2606 of 5620 relevant lines covered (46.37%)

37.7 hits per line

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

0.0
/libs/model/src/aggregates/subscription/RegisterClientRegistrationToken.command.ts
1
import { notificationsProvider, type Command } from '@hicommonwealth/core';
2
import * as schemas from '@hicommonwealth/schemas';
3

4
export function RegisterClientRegistrationToken(): Command<
5
  typeof schemas.RegisterClientRegistrationToken
6
> {
7
  const notifications = notificationsProvider();
8
  return {
×
UNCOV
9
    ...schemas.RegisterClientRegistrationToken,
×
10
    auth: [],
11
    secure: true,
12
    body: async ({ payload, actor }) => {
13
      if (!actor.user.id) {
14
        throw new Error('No user id.');
×
UNCOV
15
      }
×
16

17
      await notifications.registerClientRegistrationToken(
UNCOV
18
        actor.user.id,
×
19
        payload.token,
20
        payload.channelType,
21
      );
22
      return {};
UNCOV
23
    },
×
24
  };
25
}
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