From 0aaa6cc135967c49e928b2c1f8fd8a84f7c0f636 Mon Sep 17 00:00:00 2001 From: Daniel Padrino Date: Mon, 17 Aug 2026 14:42:47 -0300 Subject: [PATCH] Fix hardcoded services.dfx.swiss link in test mock Fix the stale default `base` URL in a Jest mock of the `url` utility, used by open-crypto-pay tests. The user-facing frontend is app.dfx.swiss, not services.dfx.swiss. --- src/__tests__/open-crypto-pay.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/__tests__/open-crypto-pay.test.ts b/src/__tests__/open-crypto-pay.test.ts index 94e6b374e..366878c5d 100644 --- a/src/__tests__/open-crypto-pay.test.ts +++ b/src/__tests__/open-crypto-pay.test.ts @@ -15,7 +15,7 @@ jest.mock('../util/utils', () => { const originalModule = jest.requireActual('../util/utils'); return { ...originalModule, - url: ({ base = 'https://services.dfx.swiss', path = '', params }: { base?: string; path?: string; params?: URLSearchParams }) => { + url: ({ base = 'https://app.dfx.swiss', path = '', params }: { base?: string; path?: string; params?: URLSearchParams }) => { const normalizedBase = base?.replace(/\/+$/, '') + '/'; const normalizedPath = path.replace(/^\/+/, ''); const absoluteUrl = new URL(normalizedPath, normalizedBase);