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

mozilla / blurts-server / #13104

pending completion
#13104

push

circleci

rhelmer
convert exposureScan to API and filter out sensitive breaches

282 of 1607 branches covered (17.55%)

Branch coverage included in aggregate %.

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

959 of 4348 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
function exposureScan (req, res, next) {
6
  if (req.method !== 'POST') {
×
7
    return next()
×
8
  }
9

10
  const allBreaches = req.app.locals.breaches
×
11

12
  const publicBreaches = allBreaches.filter(a => !a.IsSensitive)
×
13

14
  res.send(JSON.stringify({ success: true, breaches: publicBreaches }))
×
15
}
16

17
export { exposureScan }
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