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

Function assertNoHoverEvents

test/jasmine/tests/sankey_test.js:1265–1277  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

1263 });
1264
1265 function assertNoHoverEvents(type) {
1266 return function() {
1267 return Promise.resolve()
1268 .then(function() { return _hover(type); })
1269 .then(failTest).catch(function(err) {
1270 expect(err).toBe('plotly_hover did not get called!');
1271 })
1272 .then(function() { return _unhover(type); })
1273 .then(failTest).catch(function(err) {
1274 expect(err).toBe('plotly_unhover did not get called!');
1275 });
1276 };
1277 }
1278
1279 it('should not output hover/unhover event data when hovermode is false', function(done) {
1280 var fig = Lib.extendDeep({}, mock);

Callers 1

sankey_test.jsFile · 0.85

Calls 2

_hoverFunction · 0.70
_unhoverFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…