mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-13 02:14:43 +00:00
refactor special tests to remove redundant comments
This commit is contained in:
1 parent
b159edb6c3
commit
358c3a8b23
1 file changed
-2
@@ -32,8 +32,6 @@ t("Users are limited to one single character subdomain", (t) => {
|
||||
});
|
||||
|
||||
const duplicates = results.filter((result) => results.filter((r) => r.owner === result.owner).length > 1);
|
||||
|
||||
// Combine duplicates into multiple strings, only one per user, with list of their domains
|
||||
const output = duplicates.reduce((acc, curr) => {
|
||||
if (!acc[curr.owner]) {
|
||||
acc[curr.owner] = [];
|
||||
|
||||
Reference in new issue
Block a user