()
| 60 | // fgblayer.onAdd(map); |
| 61 | map.addLayer(fgblayer); |
| 62 | var cb = () => { |
| 63 | if (fgblayer && map.getLayer(fgblayer.layerId)) { |
| 64 | map.off('sourcedata', cb); |
| 65 | expect(fgblayer.strategy).toBe('bbox'); |
| 66 | expect(fgblayer).not.toBeNull(); |
| 67 | expect(fgblayer.url).toBe(fgbUrl); |
| 68 | expect(count).toBe(2); |
| 69 | done(); |
| 70 | } |
| 71 | }; |
| 72 | map.on('sourcedata', cb); |
| 73 | }); |
| 74 |
nothing calls this directly
no test coverage detected