mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-08-23 22:26:56 +00:00
refactor special test for improved readability and formatting
This commit is contained in:
+10
-4
@@ -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();
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user