Skip to content

Commit ae642be

Browse files
committed
add test for displayModeBar setup
1 parent e019510 commit ae642be

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/jasmine/tests/modebar_test.js

+8
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,14 @@ describe('ModeBar', function() {
290290
});
291291

292292
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() {
293301
var gd = getMockGraphInfo();
294302
manageModeBar(gd);
295303
expect(gd._fullLayout._modeBar).toBeDefined();

0 commit comments

Comments
 (0)