Skip to content

Fix chromatic

Fix chromatic #54

GitHub Actions / Vitest Tests succeeded Feb 23, 2024 in 0s

15 passed, 0 failed and 0 skipped

Tests passed successfully

✅ reports/vitest-report.xml

15 tests were completed in 536ms with 15 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
src/utils/CommonUtil.test.ts 15✅ 7ms

✅ src/utils/CommonUtil.test.ts

src/utils/CommonUtil.test.ts
  ✅ isNullish > it returns true for null
  ✅ isNullish > it returns true for undefined
  ✅ isNullish > it returns false for 0
  ✅ isNullish > it returns false for false
  ✅ isNullish > it returns false for empty string
  ✅ isNullish > it returns false for empty array
  ✅ isNullish > it returns false for empty object
  ✅ isNullish > it returns false for NaN
  ✅ isNullish > it returns false for Infinity
  ✅ isNullish > it returns false for function
  ✅ isNullish > it returns false for class
  ✅ truncateString > it returns the original string if it is shorter than the limit
  ✅ truncateString > it returns the truncated string if it is longer than the limit
  ✅ truncateString > with default limit 50, it returns the original shorter string
  ✅ truncateString > with default limit 50, it returns the truncated string if it is longer than the limit