mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
ensure map zoom controls are being included
this completes test parity with old tilemap tests
This commit is contained in:
parent
9c700f248e
commit
b12e0800c2
1 changed files with 8 additions and 0 deletions
|
@ -38,6 +38,14 @@ define(function (require) {
|
|||
it('should create the map', function () {
|
||||
expect(createStub.callCount).to.equal(1);
|
||||
});
|
||||
|
||||
it('should add zoom controls', function () {
|
||||
var mapOptions = createStub.firstCall.args[0];
|
||||
|
||||
expect(mapOptions).to.be.an('object');
|
||||
if (mapOptions.zoomControl) expect(mapOptions.zoomControl).to.be.ok();
|
||||
else expect(mapOptions.zoomControl).to.be(undefined);
|
||||
});
|
||||
});
|
||||
|
||||
describe('createMap', function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue