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

mozilla / blurts-server / #12051

pending completion
#12051

push

circleci

flozia
chore: Revert commit 5b9d82f

282 of 1229 branches covered (22.95%)

Branch coverage included in aggregate %.

8 of 8 new or added lines in 1 file covered. (100.0%)

959 of 3298 relevant lines covered (29.08%)

2.36 hits per line

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

0.0
/src/utils/partials.js
1
function hasPartials (data) {
2
  return data.partials?.length > 0
×
3
}
4

5
function createPartial (partialName, data) {
6
  const error = new Error(`Couldn’t find partial: '${partialName}'`)
×
7
  if (!hasPartials(data)) {
×
8
    throw error
×
9
  }
10

11
  const partial = data.partials.find(partial => partial.name === partialName)
×
12
  if (!partial) {
×
13
    throw error
×
14
  }
15

16
  return partial(data)
×
17
}
18

19
export { hasPartials, createPartial }
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

© 2026 Coveralls, Inc