Skip to content

Commit

Permalink
add unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DenverCoder544 committed Dec 12, 2024
1 parent 1b68b60 commit 5ad5990
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,13 @@ describe('ServiceUrlInputHelper Tests ', () => {
const url = 'www.com/';
expect(cleanUrl(url)).toBe(url);
});

it('should NOT encode URL params', () => {
const url = 'avoin-karttakuva.maanmittauslaitos.fi/kiinteisto-avoin/tiles/wmts/1.0.0/kiinteistojaotus/default/v3/ETRS-TM35FIN/{z}/{y}/{x}.pbf';
expect(cleanUrl(url)).toBe(url);

const url2 = 'www.com/?first=1&SECOND=2&thiRd=3';
expect(cleanUrl(url2)).toBe(url2);
});
});
});

0 comments on commit 5ad5990

Please sign in to comment.