From bcff853bad924bdd1e21ae2ad40dbf4085ffe095 Mon Sep 17 00:00:00 2001 From: Nicolas Ayral Seydoux Date: Tue, 2 Jul 2024 12:06:44 +0200 Subject: [PATCH] fixup! fixup! Add support for relative URLs --- src/http/httpError.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/http/httpError.test.ts b/src/http/httpError.test.ts index 189b9f0..de8db94 100644 --- a/src/http/httpError.test.ts +++ b/src/http/httpError.test.ts @@ -188,8 +188,8 @@ describe("ClientHttpError", () => { it("supports relative URLs for type and instance", () => { const responseUrl = "https://example.org/resource"; - const relativeTypeUrl = "../type"; - const relativeInstanceUrl = "../instance"; + const relativeTypeUrl = "/type"; + const relativeInstanceUrl = "/instance"; const response = mockResponse(); const { problemDetails: mockedProblemDetails } = mockProblemDetails({}); const error = new ClientHttpError(