mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-05-14 08:58:25 +00:00
cleanup
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user