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

mozilla / blurts-server / 6c13fab2-b705-49eb-adb5-fd9d5c14a350

pending completion
6c13fab2-b705-49eb-adb5-fd9d5c14a350

push

circleci

Vincent
Separate page for scan results

282 of 1619 branches covered (17.42%)

Branch coverage included in aggregate %.

28 of 28 new or added lines in 5 files covered. (100.0%)

959 of 4370 relevant lines covered (21.95%)

3.66 hits per line

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

0.0
/src/controllers/exposureScan.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 { generateToken } from '../utils/csrf.js'
6
import { guestLayout } from '../views/guestLayout.js'
7
import { exposureScan } from '../views/partials/exposureScan.js'
8

9
function exposureScanPage (req, res, next) {
10
  if (req.method !== 'GET' || typeof req.query.email !== 'string') {
×
11
    next()
×
12
    return
×
13
  }
14

15
  const data = {
×
16
    partial: exposureScan,
17
    nonce: res.locals.nonce,
18
    csrfToken: generateToken(res)
19
  }
20

21
  res.send(guestLayout(data))
×
22
}
23

24
export { exposureScanPage }
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