From 297e8ae19063bad22d36939268ac24c443f58ec6 Mon Sep 17 00:00:00 2001 From: Stefano Del Prete Date: Thu, 2 Jan 2025 14:59:15 +0100 Subject: [PATCH] Update pr.test.js --- tests/pr.test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/pr.test.js b/tests/pr.test.js index ae4d0a13d4..edf83560dc 100644 --- a/tests/pr.test.js +++ b/tests/pr.test.js @@ -37,8 +37,8 @@ t("Modified JSON files must be owned by the PR author", async (t) => { } t.true( - domainToCheck.owner.username === PR_AUTHOR || admins.includes(PR_AUTHOR), - `${file}: Domain owner is ${domainToCheck.owner.username} but ${PR_AUTHOR} is the PR author` + domainToCheck.owner.username.toLowerCase() === PR_AUTHOR || admins.includes(PR_AUTHOR), + `${file}: Domain owner is ${domainToCheck.owner.username.toLowerCase()} but ${PR_AUTHOR} is the PR author` ); }); @@ -59,8 +59,8 @@ t("New JSON files must be owned by the PR author", async (t) => { if (!domain) return t.fail(`${file}: Unable to read domain data`); t.true( - domain.owner.username === PR_AUTHOR || admins.includes(PR_AUTHOR), - `${file}: Domain owner is ${domain.owner.username} but ${PR_AUTHOR} is the PR author` + domain.owner.username.toLowerCase() === PR_AUTHOR || admins.includes(PR_AUTHOR), + `${file}: Domain owner is ${domain.owner.username.toLowerCase()} but ${PR_AUTHOR} is the PR author` ); });