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

mozilla / blurts-server / #13224

pending completion
#13224

push

circleci

flozia
Merge branch 'main' into MNTOR-971-Landing-page-transitions

282 of 1677 branches covered (16.82%)

Branch coverage included in aggregate %.

136 of 136 new or added lines in 15 files covered. (100.0%)

959 of 4545 relevant lines covered (21.1%)

1.76 hits per line

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

0.0
/src/controllers/exposure-scan.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/exposure-scan.js'
8

9
/**
10
 * @type {import('express').RequestHandler}
11
 */
12
const exposureScanPage = (req, res, next) => {
×
13
  if (req.method !== 'GET') {
×
14
    next()
×
15
    return
×
16
  }
17

18
  /**
19
   * @type {GuestViewPartialData<import('../views/partials/exposure-scan.js').PartialParameters>}
20
   */
21
  const data = {
×
22
    partial: exposureScan,
23
    nonce: res.locals.nonce,
24
    csrfToken: generateToken(res, req)
25
  }
26

27
  res.send(guestLayout(data))
×
28
}
29

30
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