@dhis2/gis-api
Version:
Maps API for DHIS2 based on Leaflet
39 lines (28 loc) • 794 B
JavaScript
import L from 'leaflet';
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');
});
*/
});