MCPcopy
hub / github.com/chartjs/Chart.js / isColorInstance

Function isColorInstance

test/specs/helpers.color.tests.js:4–6  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

2
3describe('Color helper', function() {
4 function isColorInstance(obj) {
5 return typeof obj === 'object' && obj.valid;
6 }
7
8 it('should return a color when called with a color', function() {
9 expect(isColorInstance(color('rgb(1, 2, 3)'))).toBe(true);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected