Use constants.TEST
This commit is contained in:
@@ -689,7 +689,7 @@ async function upsertDnsRecords(domain, mailFqdn) {
|
||||
const mailDomain = await getDomain(domain);
|
||||
if (!mailDomain) throw new BoxError(BoxError.NOT_FOUND, 'mail domain not found');
|
||||
|
||||
if (process.env.BOX_ENV === 'test') return;
|
||||
if (constants.TEST) return;
|
||||
|
||||
const publicKey = mailDomain.dkimKey.publicKey.split('\n').slice(1, -2).join(''); // remove header, footer and new lines
|
||||
|
||||
|
||||
Reference in New Issue
Block a user