Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
test('list map', async () => {
const { AutoMap } = map.components,
{ Geojson } = map.config.overlays;
setRouteInfo({
page: 'item',
mode: 'list'
});
const result = renderTest(AutoMap, mockApp),
overlay = result.root.findByType(Geojson);
expect(overlay.props).toEqual({
name: 'item',
popup: 'item',
url: '/items.geojson',
cluster: true,
active: true
});
await nextTick();
const leafletOverlay =
overlay.children[0].children[0].instance.leafletElement;
expect(leafletOverlay.getBounds().toBBoxString()).toEqual(