diff --git a/test/RLayerMisc.test.tsx b/test/RLayerMisc.test.tsx index 01602fd3..9af8c08b 100644 --- a/test/RLayerMisc.test.tsx +++ b/test/RLayerMisc.test.tsx @@ -15,24 +15,21 @@ import RLayerStadia from 'rlayers/layer/RLayerStadia'; import * as common from './common'; describe('', () => { - (process.env.STADIA_MAPS_API_KEY ? it : it.skip)( - 'should display a tiled Stadia layer', - function () { - const layer = React.createRef() as React.RefObject; - const {container} = render( - - - - ); - expect((layer.current?.source.getUrls() || [])[0]).toBe( - `https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}.png?api_key=${process.env.STADIA_MAPS_API_KEY}` - ); - } - ); + (process.env.STADIA_MAPS_API_KEY ? it : it.skip)('should display a tiled Stadia layer', () => { + const layer = React.createRef() as React.RefObject; + const {container} = render( + + + + ); + expect((layer.current?.source.getUrls() || [])[0]).toBe( + `https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}.png?api_key=${process.env.STADIA_MAPS_API_KEY}` + ); + }); }); describe('', () => {