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

mozilla / blurts-server / beb0aeed-e7f5-424c-b1a7-5d180c84f017

pending completion
beb0aeed-e7f5-424c-b1a7-5d180c84f017

Pull #2985

circleci

Jeremy Swinarton
more
Pull Request #2985: MNTOR-1385 Basic backend flow for Premium featureset

282 of 1784 branches covered (15.81%)

Branch coverage included in aggregate %.

24 of 24 new or added lines in 4 files covered. (100.0%)

959 of 4694 relevant lines covered (20.43%)

3.41 hits per line

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

0.0
/src/routes/auth.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 { Router } from 'express'
6

7
import AppConstants from '../appConstants.js'
8
import { requireSessionUser } from '../middleware/auth.js'
9
import { asyncMiddleware } from '../middleware/util.js'
10
import { init, confirmed, logout, premiumUpgrade, premiumConfirmed } from '../controllers/auth.js'
11

12
const {
13
  FXA_SUBSCRIPTION_ENABLED
14
} = AppConstants
×
15

16
const router = Router()
×
17

18
router.get('/init', init)
×
19
router.get('/confirmed', asyncMiddleware(confirmed))
×
20
router.get('/logout', asyncMiddleware(logout))
×
21

22
if (FXA_SUBSCRIPTION_ENABLED) {
×
23
  router.get('/premium/upgrade', requireSessionUser, asyncMiddleware(premiumUpgrade))
×
24
  router.get('/premium/confirmed', requireSessionUser, asyncMiddleware(premiumConfirmed))
×
25
}
26

27
export default router
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