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

DamianMullins / Coinsly / #277

pending completion
#277

Pull #86

web-flow
Bump happy-dom from 10.5.2 to 10.8.0

Bumps [happy-dom](https://github.com/capricorn86/happy-dom) from 10.5.2 to 10.8.0.
- [Release notes](https://github.com/capricorn86/happy-dom/releases)
- [Commits](https://github.com/capricorn86/happy-dom/compare/v10.5.2...v10.8.0)

---
updated-dependencies:
- dependency-name: happy-dom
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Pull Request #86: Bump happy-dom from 10.5.2 to 10.8.0

4 of 6 branches covered (66.67%)

Branch coverage included in aggregate %.

68 of 81 relevant lines covered (83.95%)

1.89 hits per line

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

69.44
/src/lib/coinHelper.js
1
const filterByDenomination = (coins, denomination) =>
1✔
2
  coins.filter(coin => coin.denomination === denomination);
1✔
3

1✔
4
const filterCoins = (coins, filter, denomination) => {
1✔
5
  const byDenomination = filterByDenomination(coins, denomination);
×
6

×
7
  switch (filter) {
×
8
    case 'Needed':
×
9
      return byDenomination.filter(coin => !coin.owned);
×
10
    case 'Owned':
×
11
      return byDenomination.filter(coin => coin.owned);
×
12
    default:
×
13
      return byDenomination;
×
14
  }
×
15
};
×
16

1✔
17
const getDenominations = coins => [
1✔
18
  ...new Set(
7✔
19
    coins.reduce((prev, coin) => {
7✔
20
      if (coin.denomination) {
8✔
21
        prev.push(coin.denomination);
6✔
22
      }
6✔
23

8✔
24
      return prev;
8✔
25
    }, [])
7✔
26
  )
7✔
27
];
7✔
28

1✔
29
export default {
1✔
30
  filterCoins,
1✔
31
  filterByDenomination,
1✔
32
  getDenominations
1✔
33
};
1✔
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