MCPcopy
hub / github.com/plotly/plotly.js / assertLetterCount

Function assertLetterCount

test/jasmine/tests/polar_test.js:603–608  ·  view source on GitHub ↗
(query)

Source from the content-addressed store, hash-verified

601 var sp = d3Select(gd).select('g.polar');
602
603 function assertLetterCount(query) {
604 var d = sp.select(query).attr('d');
605 var re = new RegExp(exp.letter, 'g');
606 var actual = (d.match(re) || []).length;
607 expect(actual).toBe(exp.cnt, msg + ' - ' + query);
608 }
609
610 assertLetterCount('.plotbg > path');
611 assertLetterCount('.radial-grid > path');

Callers 1

_assertFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…