ensure map zoom controls are being included

this completes test parity with old tilemap tests
This commit is contained in:
Joe Fleming 2015-06-25 20:29:50 -07:00
parent 9c700f248e
commit b12e0800c2

View file

@ -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 () {