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

mozilla / blurts-server / #13281

pending completion
#13281

push

circleci

jswinarton
Merge branch 'main' into premium-scaffold

282 of 1687 branches covered (16.72%)

Branch coverage included in aggregate %.

188 of 188 new or added lines in 26 files covered. (100.0%)

959 of 4564 relevant lines covered (21.01%)

1.75 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
/**
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/exposureScan.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