Skip to content

Commit 09f1af5

Browse files
committed
explicitly assert that _scrollZoom.cartesian isn't set
1 parent 16a01e7 commit 09f1af5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/jasmine/tests/config_test.js

+2
Original file line numberDiff line numberDiff line change
@@ -776,6 +776,7 @@ describe('config argument', function() {
776776
plot(undefined).then(function() {
777777
expect(gd._context.scrollZoom).toBe('gl3d+geo+mapbox');
778778
expect(gd._context._scrollZoom).toEqual({gl3d: 1, geo: 1, mapbox: 1});
779+
expect(gd._context._scrollZoom.cartesian).toBe(undefined, 'no cartesian!');
779780
})
780781
.catch(failTest)
781782
.then(done);
@@ -785,6 +786,7 @@ describe('config argument', function() {
785786
plot({scrollZoom: null}).then(function() {
786787
expect(gd._context.scrollZoom).toBe(null);
787788
expect(gd._context._scrollZoom).toEqual({gl3d: 1, geo: 1, mapbox: 1});
789+
expect(gd._context._scrollZoom.cartesian).toBe(undefined, 'no cartesian!');
788790
})
789791
.catch(failTest)
790792
.then(done);

0 commit comments

Comments
 (0)