mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-06-21 06:11:45 +00:00
fix for test suit
This commit is contained in:
@@ -57,10 +57,10 @@ vi.mock('../../src/utils/ssrfGuard', async () => {
|
|||||||
apiName = params.get('api') || '';
|
apiName = params.get('api') || '';
|
||||||
} catch {}
|
} catch {}
|
||||||
if (!apiName && init?.body) {
|
if (!apiName && init?.body) {
|
||||||
apiName = params.get('api') || '';
|
|
||||||
params = init.body instanceof URLSearchParams
|
params = init.body instanceof URLSearchParams
|
||||||
? init.body
|
? init.body
|
||||||
: new URLSearchParams(String(init.body));
|
: new URLSearchParams(String(init.body));
|
||||||
|
apiName = params.get('api') || '';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Auth login — used by settings save, status, test-connection
|
// Auth login — used by settings save, status, test-connection
|
||||||
|
|||||||
Reference in New Issue
Block a user