Update Tests & Make TypeScript happy

This commit is contained in:
SukkaW
2024-10-02 21:33:59 +08:00
parent 9735d05956
commit d1041f0e59
7 changed files with 31 additions and 12 deletions

View File

@@ -18,7 +18,7 @@ import * as tldtsExperimental from 'tldts-experimental';
};
(['getDomain', 'getPublicSuffix', 'getSubdomain', 'parse'] as const).forEach(methodName => {
group(methodName, () => {
group(() => {
bench('tldts', () => {
for (let i = 0, len = data.length; i < len; i++) {
tldts[methodName](data[i], tldtsOpt);