Skip to content

Commit

Permalink
test(endpoints): compare href of URL object (#4057)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr committed Oct 19, 2022
1 parent adbee08 commit 87fc297
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/endpoints-2.0/endpoints-integration.spec.ts
Expand Up @@ -127,7 +127,7 @@ function assertEndpointResolvedCorrectly(expected: EndpointExpectation["endpoint
const { url, headers, properties } = expected;
const { authSchemes } = properties || {};
if (url) {
expect(observed.url.href).toContain(url);
expect(observed.url.href).toContain(new URL(url).href);
expect(Math.abs(observed.url.href.length - url.length)).toBeLessThan(2);
}
if (headers) {
Expand Down

0 comments on commit 87fc297

Please sign in to comment.