10 Commits
Author SHA1 Message Date
Thomas Weber 7387fa0883 Replace tap with node:test (#393) 2026-10-18 14:43:49 -05:00
adroitwhiz cbe912e1be Add malformed hex RGB color *list* test 2020-05-01 15:06:52 -04:00
adroitwhiz 277a355ce4 Add unit test for malformed hex color string cast 2020-05-01 14:50:39 -04:00
apple502j 7b8e0f9ce3 Added a test 2019-06-01 14:49:46 +09:00
Ray Schamp bafdf8d9f2 Use ES6 linting rules in the project root
Update all tests for `no-var` and `prefer-arrow-callback` (using `--fix`)
2017-04-24 15:37:58 -04:00
griffpatch 0dcaa46107 Fix lint issues
Had to update the test scripts to handle the alpha channel, also I note
that all the hex tests are using CSS notation, not scratch notation
(which is 0x not #)
2017-01-27 17:05:17 +00:00
Christopher Willis-Ford d0845728ee Add unit tests for new color-related functionality
Also, fix a math error in `Color.rgbToHsv`.

Newly covered functions:
- `toRbgColorObject` from `util/cast.js`
- `hsvToRgb` from `util/colors.js`
- `rgbToHsv` from `util/colors.js`
- `mixRgb` from `util/colors.js`
2017-01-19 15:24:45 -08:00
Ray Schamp 0e909cb9a5 Fix comma-spacing 2016-10-24 10:57:52 -04:00
Andrew Sliwinski 4205d05cdb Address feedback from PR review. GH-103 2016-10-03 18:23:43 -04:00
Andrew Sliwinski 8ca6944292 Add unit tests for all utility modules. Re GH-103 2016-10-03 16:34:57 -04:00