hex-to-rgb-jquery
Unit testing helper function that converts hex colors to rgb colors
What is hex-to-rgb-jquery?
hex-to-rgb-jquery is a wrapper for onecolor that adjusts its response so it matches the rgb format jQuery returns.
Install
$ npm install hex-to-rgb-jquery --save-dev
Usage
Add the following script tag to your unit test runner.
Example
Test Runner <!-- lib scripts --> <!-- hex-to-rgb script --> <!-- Mocha setup --> <!-- source code scripts --> <!-- test scripts -->
Call the function in the test
windowhexToRgbJquery;
Ex in context of a test:
var hexToRgb = windowhexToRgbJqueryhexToRgb; ;
Contributing
Please see CONTRIBUTING.md.
Release History
Please see CHANGELOG.md.
License
Copyright (c) 2017 Thomas Lindner. Licensed under the MIT license.