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

Function _assert

test/jasmine/tests/geo_test.js:551–559  ·  view source on GitHub ↗
(exp)

Source from the content-addressed store, hash-verified

549 var vals = ['locations', 'geojson'];
550
551 function _assert(exp) {
552 expect(layoutOut.geo.projection.scale).toBe(exp['projection.scale'], 'projection.scale');
553 expect(layoutOut.geo.center.lon).toBe(exp['center.lon'], 'center.lon');
554 expect(layoutOut.geo.center.lat).toBe(exp['center.lat'], 'center.lat');
555 expect(layoutOut.geo.projection.rotation.lon).toBe(exp['projection.rotation.lon'], 'projection.rotation.lon');
556 expect(layoutOut.geo.projection.rotation.lat).toBe(exp['projection.rotation.lat'], 'projection.rotation.lat');
557 expect(layoutOut.geo.lonaxis.range).withContext('lonaxis.range').toEqual(exp['lonaxis.range'], 'lonaxis.range');
558 expect(layoutOut.geo.lataxis.range).withContext('lataxis.range').toEqual(exp['lataxis.range'], 'lataxis.range');
559 }
560
561 describe('- for scoped maps', function() {
562 it('fitbounds:false (base case)', function() {

Callers 1

geo_test.jsFile · 0.70

Calls 4

negateIfFunction · 0.85
findGridPathFunction · 0.85
firstFunction · 0.70
assertEventDataFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…