MCPcopy Index your code
hub / github.com/plotly/plotly.js / compareOutputs

Function compareOutputs

test/jasmine/tests/template_test.js:298–306  ·  view source on GitHub ↗
(out1, out2, expected, countToCheck)

Source from the content-addressed store, hash-verified

296
297describe('validateTemplate', function() {
298 function compareOutputs(out1, out2, expected, countToCheck) {
299 expect(out2).toEqual(out1);
300 if(expected) {
301 expect(countToCheck ? out1.slice(0, countToCheck) : out1)
302 .toEqual(expected);
303 } else {
304 expect(out1).toBeUndefined();
305 }
306 }
307
308 function checkValidate(mock, expected, countToCheck) {
309 var template = mock.layout.template;

Callers 1

checkValidateFunction · 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…