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

mozilla / blurts-server / #13280

pending completion
#13280

push

circleci

jswinarton
more

282 of 1635 branches covered (17.25%)

Branch coverage included in aggregate %.

10 of 10 new or added lines in 2 files covered. (100.0%)

959 of 4395 relevant lines covered (21.82%)

1.82 hits per line

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

0.0
/src/utils/subscriber.js
1
/* This Source Code Form is subject to the terms of the Mozilla Public
2
 * License, v. 2.0. If a copy of the MPL was not distributed with this
3
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4

5
import {
6
  FXA_SUBSCRIPTION_ENABLED,
7
  FXA_SUBSCRIPTION_KEY
8
} from '../app-constants.js'
9

10
function isSubscribed (user) {
11
  if (!FXA_SUBSCRIPTION_ENABLED) { return false; }
×
12

13
  return user.fxa_profile_json?.subscriptions?.includes(FXA_SUBSCRIPTION_KEY)
×
14
}
15

16
export { isSubscribed }
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