mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-15 09:06:25 +00:00
b4319928f1
* refactor: strict manager tests * chore: revert changes * Update lib/modules/manager/gradle/extract.spec.ts
13 lines
406 B
TypeScript
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();
|
|
}
|
|
});
|
|
});
|