From 6d31ff6400a89cbaa3ab80aa8fdeff3b1f496c23 Mon Sep 17 00:00:00 2001 From: Jakob Ackermann Date: Tue, 26 Sep 2023 11:09:19 +0200 Subject: [PATCH] Merge pull request #14967 from overleaf/jpa-fetch-mock-last-url [web] less verbose access to last fetch-mock URL GitOrigin-RevId: 7266fdd62eab29b944675c865c6c5f547d207abc --- .../test/frontend/features/chat/context/chat-context.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/test/frontend/features/chat/context/chat-context.test.js b/services/web/test/frontend/features/chat/context/chat-context.test.js index 12a0abc40b..a02756e101 100644 --- a/services/web/test/frontend/features/chat/context/chat-context.test.js +++ b/services/web/test/frontend/features/chat/context/chat-context.test.js @@ -618,7 +618,7 @@ function createMessages(number, user, timestamp = Date.now()) { * Get query param by key from the last fetchMock response */ function getLastFetchMockQueryParam(key) { - const { url } = fetchMock.lastResponse() + const url = fetchMock.lastUrl() const { searchParams } = new URL(url, 'https://www.overleaf.com') return searchParams.get(key) }