renovate/lib/modules/manager/fingerprint.spec.ts
Michael Kriese b4319928f1
refactor: strict manager tests (#16155)
* refactor: strict manager tests

* chore: revert changes

* Update lib/modules/manager/gradle/extract.spec.ts
2022-06-20 17:05:39 +02:00

13 lines
406 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();
}
});
});