MCPcopy Create free account
hub / github.com/chartjs/Chart.js / hint

Function hint

test/specs/vitest.setup.node.unit.spec.js:41–41  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

39
40 it('makes the chart helpers fail with a hint', function() {
41 const hint = (name) => `${name} needs a browser: rename test/specs/vitest.setup.node.unit.spec.js to drop .unit from its name`;
42
43 expect(() => acquireChart({type: 'line'})).toThrow(hint('acquireChart'));
44 expect(() => releaseChart()).toThrow(hint('releaseChart'));

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected