From 866d0c173d6378be5ea9d9806492347624ef413f Mon Sep 17 00:00:00 2001 From: Trek Glowacki Date: Thu, 23 May 2024 15:25:04 -0500 Subject: [PATCH] [tests] remove unused `opts.skipTeam` (#11650) I can't find this being used anywhere. --- .changeset/cuddly-boats-buy.md | 4 ++++ test/lib/deployment/now-deploy.js | 11 ++++------- 2 files changed, 8 insertions(+), 7 deletions(-) create mode 100644 .changeset/cuddly-boats-buy.md diff --git a/.changeset/cuddly-boats-buy.md b/.changeset/cuddly-boats-buy.md new file mode 100644 index 000000000..b08b974d2 --- /dev/null +++ b/.changeset/cuddly-boats-buy.md @@ -0,0 +1,4 @@ +--- +--- + +[tests] remove unused `opts.skipTeam` diff --git a/test/lib/deployment/now-deploy.js b/test/lib/deployment/now-deploy.js index 660516098..17a9e60f7 100644 --- a/test/lib/deployment/now-deploy.js +++ b/test/lib/deployment/now-deploy.js @@ -187,15 +187,12 @@ async function fetchWithAuth(url, opts = {}) { opts.headers.Authorization = `Bearer ${await fetchCachedToken()}`; } - if (opts.skipTeam) { - delete opts.skipTeam; - } else { - const { VERCEL_TEAM_ID } = process.env; + const { VERCEL_TEAM_ID } = process.env; - if (VERCEL_TEAM_ID) { - url += `${url.includes('?') ? '&' : '?'}teamId=${VERCEL_TEAM_ID}`; - } + if (VERCEL_TEAM_ID) { + url += `${url.includes('?') ? '&' : '?'}teamId=${VERCEL_TEAM_ID}`; } + return await fetchApi(url, opts); }