Initial commit
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
var MultiPoint = require('../../../../src/geo/geometry-models/multi-point');
|
||||
var SharedTestsForMultiGeometryViews = require('./shared-tests-for-multi-geometry-views');
|
||||
var createMapView = require('./create-map-view');
|
||||
|
||||
module.exports = function (MapView, MultiPointView) {
|
||||
beforeEach(function () {
|
||||
this.geometry = new MultiPoint(null, {
|
||||
latlngs: [
|
||||
[0, 1],
|
||||
[1, 2]
|
||||
]
|
||||
});
|
||||
this.mapView = createMapView(MapView);
|
||||
this.mapView.render();
|
||||
|
||||
this.geometryView = new MultiPointView({
|
||||
model: this.geometry,
|
||||
mapView: this.mapView
|
||||
});
|
||||
});
|
||||
|
||||
SharedTestsForMultiGeometryViews.call(this);
|
||||
|
||||
it('should render the geometries', function () {
|
||||
expect(this.mapView.getMarkers().length).toEqual(2); // 2 points
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user