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) }