From 71c8b792c79954e28fecd27c9f650d1bd379426d Mon Sep 17 00:00:00 2001 From: Momtchil Momtchev Date: Mon, 2 Sep 2024 19:15:14 +0200 Subject: [PATCH] restore the arrow function --- test/RLayerMisc.test.tsx | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) 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('', () => {