Skip to content

Commit

Permalink
fix(wmts): style tag test tostring
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Ramsay committed Jul 9, 2020
1 parent 4ac04b9 commit 77d6b68
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/lambda-xyz/src/__test__/wmts.capability.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 77d6b68

Please sign in to comment.