Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import GroupMap from './GroupMap'
import { usersMock, placesMock } from '>/mockdata'
import * as Vue2Leaflet from 'vue2-leaflet'
import ExtendedMarker from './ExtendedMarker'
import { mountWithDefaults } from '>/helpers'
import Vue from 'vue'
/* vue2-leaflet library does not name its components, which vue-test-utils needs to find them
so we give them names here... */
Vue2Leaflet.LMap.name = 'Vue2LeafletMap'
Vue2Leaflet.LTileLayer.name = 'Vue2LeafletTileLayer'
Vue2Leaflet.LPopup.name = 'Vue2LeafletPopup'
Vue2Leaflet.LMarker.name = 'Vue2LeafletMarker'
const defaultProps = {
users: usersMock,
places: placesMock,
showUsers: true,
showPlaces: true,
currentGroup: {
membership: {
isEditor: true,
},
},
}
describe('GroupMap', () => {