From 77d6b68f0fe57adc0bab48a718fa1d5f89289d97 Mon Sep 17 00:00:00 2001 From: Joseph Ramsay Date: Fri, 10 Jul 2020 11:24:56 +1200 Subject: [PATCH] fix(wmts): style tag test tostring --- packages/lambda-xyz/src/__test__/wmts.capability.test.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/lambda-xyz/src/__test__/wmts.capability.test.ts b/packages/lambda-xyz/src/__test__/wmts.capability.test.ts index 7fa38feb58..88c0711c14 100644 --- a/packages/lambda-xyz/src/__test__/wmts.capability.test.ts +++ b/packages/lambda-xyz/src/__test__/wmts.capability.test.ts @@ -58,9 +58,11 @@ o.spec('WmtsCapabilities', () => { o(layer?.find('ows:Title')?.textContent).equals('aerial:title'); o(layer?.find('ows:Identifier')?.textContent).equals('aerial-3857'); - o(layer?.find('Style')?.textContent).equals( - V('Style', { isDefault: 'true' }, [V('ows:Title', 'Default Style'), V('ows:Identifier', 'default')]) - .textContent, + o(layer?.find('Style')?.toString()).equals( + V('Style', { isDefault: 'true' }, [ + V('ows:Title', 'Default Style'), + V('ows:Identifier', 'default'), + ]).toString(), ); const urls = tags(layer, 'ResourceURL');