tests: add footer tests

This commit is contained in:
Girish Ramakrishnan
2021-08-31 08:47:01 -07:00
parent 6027397961
commit ffc3c94d77
4 changed files with 67 additions and 3 deletions

View File

@@ -131,7 +131,6 @@ async function add(domain, data, auditSource) {
if (domain.endsWith('.')) throw new BoxError(BoxError.BAD_FIELD, 'Invalid domain', { field: 'domain' });
if (zoneName) {
console.log('THE ZONE', zoneName);
if (!tld.isValid(zoneName)) throw new BoxError(BoxError.BAD_FIELD, 'Invalid zoneName', { field: 'zoneName' });
if (zoneName.endsWith('.')) throw new BoxError(BoxError.BAD_FIELD, 'Invalid zoneName', { field: 'zoneName' });
} else {