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

Kikobeats / html-scripts / 17485533583

05 Sep 2025 06:25AM UTC coverage: 100.0%. Remained the same
17485533583

push

github

web-flow
Merge pull request #9 from Kikobeats/dependabot/github_actions/actions/setup-node-5

build(deps): bump actions/setup-node from 4 to 5

11 of 11 branches covered (100.0%)

Branch coverage included in aggregate %.

20 of 20 relevant lines covered (100.0%)

3.7 hits per line

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

100.0
/src/index.js
1
'use strict'
1✔
2

1✔
3
const { parse } = require('himalaya')
1✔
4

1✔
5
const getValue = value => {
1✔
6
  if (value === null) return true
9✔
7
  if (value === '1') return true
9✔
8
  return value
5✔
9
}
9✔
10

1✔
11
const fromPairs = collection =>
1✔
12
  collection.reduce((acc, { key, value }) => {
3✔
13
    acc[key] = getValue(value)
9✔
14
    return acc
9✔
15
  }, {})
3✔
16

1✔
17
module.exports = html => {
1✔
18
  const json = parse(html).filter(({ tagName }) => tagName === 'script')
3✔
19
  return json.map(({ attributes }) => fromPairs(attributes))
3✔
20
}
3✔
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