0
0
mirror of https://github.com/renovatebot/renovate.git synced 2024-12-22 13:38:32 +00:00
renovatebot_renovate/lib/util/package-rules/files.spec.ts
2023-11-07 15:50:29 +00:00

20 lines
465 B
TypeScript

import { FileNamesMatcher } from './files';
describe('util/package-rules/files', () => {
const fileMatcher = new FileNamesMatcher();
describe('match', () => {
it('should return false if packageFile is not defined', () => {
const result = fileMatcher.matches(
{
packageFile: undefined,
},
{
matchFileNames: ['frontend/package.json'],
},
);
expect(result).toBeFalse();
});
});
});