This commit is contained in:
Akshay Nair
2020-10-11 23:06:27 +05:30
parent 44287b850e
commit b7741e02ff
2 changed files with 1 additions and 3 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ const registerDomains = async ({ domainService, getDomains, log = () => {} }) =>
if (domains.length === 0)
return Promise.reject(new Error('Nothing to register'));
log(`Publishing ${domains.length} records...`);
log(`${domains.length} records found`);
return domainService.updateHosts(domains);
};
-2
View File
@@ -49,8 +49,6 @@ describe('registerDomains', () => {
editRedir,
}) });
const getRecordCalls = recfn => recfn.mock.calls.map(R.head).map(R.pick(['name', 'type', 'address', 'redirect', 'domain']));
beforeEach(() => {
addZone.mockClear();
editZone.mockClear();