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

mozilla / blurts-server / #13101

pending completion
#13101

push

circleci

rhelmer
use JS to submit scan, and provide API for it

282 of 1607 branches covered (17.55%)

Branch coverage included in aggregate %.

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

959 of 4347 relevant lines covered (22.06%)

1.84 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 { guestLayout } from '../views/guestLayout.js'
6
import { exposureScan } from '../views/partials/exposureScan.js'
7

8
function exposureScanPage (req, res, next) {
9
  if (req.method !== 'POST') {
×
10
    return next()
×
11
  }
12

13
  const data = {
×
14
    partial: exposureScan,
15
    nonce: res.locals.nonce
16
  }
17

18
  res.send(JSON.stringify({ success: true }))
×
19
}
20

21
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