From 640446899a3e069f0bf8ec386d52a129eafc362a Mon Sep 17 00:00:00 2001 From: Travis Vachon Date: Wed, 13 Sep 2023 14:42:46 -0700 Subject: [PATCH] fix: use ACCESS_SERVICE_URL in integration tests rather than hardcoding https://staging.up.web3.storage. also add an error message to detect cases where the local ACCESS_SERVICE_URL --- test/helpers/up-client.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test/helpers/up-client.js b/test/helpers/up-client.js index 5fac1465..1f866fcb 100644 --- a/test/helpers/up-client.js +++ b/test/helpers/up-client.js @@ -9,15 +9,17 @@ import { MailSlurp } from "mailslurp-client" /** * * @param {string} email - * @param {string} uploadServiceUrl + * @param {string} accessServiceUrl */ -function getAuthLinkFromEmail (email, uploadServiceUrl) { +function getAuthLinkFromEmail (email, accessServiceUrl) { // forgive me for I have s̵i̵n̴n̴e̵d̴ ̸a̸n̵d̷ ̷p̶a̵r̵s̵e̸d̷ Ȟ̷̞T̷̢̈́M̸̼̿L̴̎ͅ ̵̗̍ẅ̵̝́ï̸ͅt̴̬̅ḫ̸̔ ̵͚̔ŗ̵͊e̸͍͐g̶̜͒ė̷͖x̴̱̌ // TODO we should update the email and add an ID to this element to make this more robust - tracked in https://github.com/web3-storage/w3infra/issues/208 const link = email.match(/