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

felixicaza / lightningcss-plugins / 14656245837

25 Apr 2025 03:22AM CUT coverage: 100.0%. Remained the same
14656245837

push

github

felixicaza
chore(package): replace lint-staged with nano-staged

14 of 14 branches covered (100.0%)

Branch coverage included in aggregate %.

41 of 41 relevant lines covered (100.0%)

76.76 hits per line

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

100.0
/packages/pxtorem/src/utils/errorHandler.ts
1
export function validateIsNumber(value: number, name: string) {
3✔
2
  if (typeof value !== 'number' || isNaN(value)) {
165✔
3
    throw new Error(`Invalid ${name}: must be a valid number.`)
3✔
4
  }
3✔
5
}
165✔
6

7
export function validatePositiveInteger(value: number, name: string) {
3✔
8
  if (value < 0) {
120✔
9
    throw new Error(`Invalid ${name}: must not be negative.`)
9✔
10
  }
9✔
11

12
  if (!Number.isInteger(value)) {
120✔
13
    throw new Error(`Invalid ${name}: must not be a decimal.`)
3✔
14
  }
3✔
15
}
120✔
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