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

Function _check

test/jasmine/tests/box_test.js:206–217  ·  view source on GitHub ↗
(msg, t, exp)

Source from the content-addressed store, hash-verified

204
205 describe('q1/median/q3 API signature', function() {
206 function _check(msg, t, exp) {
207 var gd = { data: [Lib.extendFlat({type: 'box'}, t)] };
208 supplyAllDefaults(gd);
209 for(var k in exp) {
210 var actual = gd._fullData[0][k];
211 if(Array.isArray(exp[k])) {
212 expect(actual).toEqual(exp[k], msg + ' | ' + k);
213 } else {
214 expect(actual).toBe(exp[k], msg + ' | ' + k);
215 }
216 }
217 }
218
219 it('should result in correct orientation results', function() {
220 _check('insufficient (no median)', {

Callers 1

box_test.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…