|
|
|
@ -54,7 +54,7 @@ describe('real page load order (markup before customElements.define)', () => {
|
|
|
|
expect(map.leafletObject).toBeUndefined();
|
|
|
|
expect(map.leafletObject).toBeUndefined();
|
|
|
|
|
|
|
|
|
|
|
|
// Mirrors index.ts's real export order, which is what actually runs when
|
|
|
|
// Mirrors index.ts's real export order, which is what actually runs when
|
|
|
|
// a page does `import 'leaflet-components'`.
|
|
|
|
// a page does `import 'leaflet-web-components'`.
|
|
|
|
const lc = await import('../src/index.ts');
|
|
|
|
const lc = await import('../src/index.ts');
|
|
|
|
|
|
|
|
|
|
|
|
expect(map).toBeInstanceOf(lc.LeafletMapElement);
|
|
|
|
expect(map).toBeInstanceOf(lc.LeafletMapElement);
|
|
|
|
|