Use constants.TEST
This commit is contained in:
@@ -261,7 +261,7 @@ async function verifyDomainConfig(domainObject) {
|
||||
defaultProxyStatus: domainConfig.defaultProxyStatus
|
||||
};
|
||||
|
||||
if (process.env.BOX_ENV === 'test') return sanitizedConfig; // this shouldn't be here
|
||||
if (constants.TEST) return sanitizedConfig; // this shouldn't be here
|
||||
|
||||
const [error, nameservers] = await safe(dig.resolve(zoneName, 'NS', { timeout: 5000 }));
|
||||
if (error && error.code === 'ENOTFOUND') throw new BoxError(BoxError.BAD_FIELD, 'Unable to resolve nameservers for this domain');
|
||||
|
||||
Reference in New Issue
Block a user