mirror of
https://github.com/bulwarkmail/native.git
synced 2026-11-01 08:06:13 +00:00
9 lines
386 B
JavaScript
9 lines
386 B
JavaScript
// Calls the test helper (scripts/e2e/helper.mjs) on the runner.
|
|
// env CALL: path and query, e.g. "/totp" or "/pair?user=x&deliver=openurl".
|
|
// The answer lands in output.helper.
|
|
const response = http.get(HELPER + CALL);
|
|
if (!response.ok) {
|
|
throw new Error('helper ' + CALL.split('?')[0] + ' failed: ' + response.status + ' ' + response.body);
|
|
}
|
|
output.helper = json(response.body);
|