We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e019510 commit ae642beCopy full SHA for ae642be
test/jasmine/tests/modebar_test.js
@@ -290,6 +290,14 @@ describe('ModeBar', function() {
290
});
291
292
it('displays or not mode bar according to displayModeBar config arg', function() {
293
+ var gd = getMockGraphInfo();
294
+ gd._context.displayModeBar = false;
295
+
296
+ manageModeBar(gd);
297
+ expect(gd._fullLayout._modeBar).not.toBeDefined();
298
+ });
299
300
+ it('updates mode bar according to displayModeBar config arg', function() {
301
var gd = getMockGraphInfo();
302
manageModeBar(gd);
303
expect(gd._fullLayout._modeBar).toBeDefined();
0 commit comments