From 83b803ed0c70a73257603686b7fc4bfa13a59f63 Mon Sep 17 00:00:00 2001 From: William Harrison <87287585+wdhdev@users.noreply.github.com> Date: Mon, 13 Jan 2025 18:00:15 +0800 Subject: [PATCH] refactor special test for improved readability and formatting --- tests/special.test.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/tests/special.test.js b/tests/special.test.js index b0cfa99a4..9861a0519 100644 --- a/tests/special.test.js +++ b/tests/special.test.js @@ -26,8 +26,8 @@ t("Users are limited to one single character subdomain", (t) => { if (subdomain.length === 1 && !bypassedUsernames.includes(data.owner.username.toLowerCase())) { results.push({ subdomain, - owner: data.owner.username.toLowerCase(), - }) + owner: data.owner.username.toLowerCase() + }); } }); @@ -41,7 +41,13 @@ t("Users are limited to one single character subdomain", (t) => { return acc; }, {}); - t.is(duplicates.length, 0, Object.keys(output).map((owner) => `${owner} - ${output[owner].join(", ")}`).join("\n")); + t.is( + duplicates.length, + 0, + Object.keys(output) + .map((owner) => `${owner} - ${output[owner].join(", ")}`) + .join("\n") + ); t.pass(); -}) +});