dhis2-maps-api
Version:
Maps API for DHIS2 based on Leaflet
38 lines (27 loc) • 765 B
JavaScript
import {GeoJson} from '../GeoJson';
describe('DHIS2 GeoJSON layer', () => {
/*
let layer;
beforeEach(() => {
layer = new GeoJson();
});
*/
it('should extend L.GeoJSON', () => {
const layer = new GeoJson();
expect(layer).toBeInstanceOf(L.GeoJSON);
});
/*
it('should have an addLayer method', () => {
expect(layer.addLayer).to.be.a('function');
});
it('should have an addLabel method', () => {
expect(layer.addLabel).to.be.a('function');
});
it('should have setOpacity method', () => {
expect(layer.setOpacity).to.be.a('function');
});
it('should have findById method', () => {
expect(layer.findById).to.be.a('function');
});
*/
});