renovate/lib/modules/manager/fingerprint.spec.ts
RahulGautamSingh edfbe81da7
refactor: add manager fingerprinting (#14671)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-04-06 14:28:48 +00:00

13 lines
405 B
TypeScript

import { regEx } from '../../util/regex';
import { getManagers, hashMap } from '.';
describe('modules/manager/fingerprint', () => {
it('validate manager hash', () => {
const regex = regEx(/^[a-f0-9]{64}$/i);
const managers = getManagers();
for (const [manager] of managers) {
const managerHash = hashMap.get(manager);
expect(regex.test(managerHash)).toBeTrue();
}
});
});