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

31 lines
911 B
TypeScript

import { updateArtifacts } from '.';
describe('modules/manager/git-submodules/artifact', () => {
describe('updateArtifacts()', () => {
it('returns empty content', () => {
expect(
updateArtifacts({
packageFileName: '',
updatedDeps: [{ depName: '' }],
newPackageFileContent: '',
config: {},
}),
).toMatchObject([{ file: { type: 'addition', path: '', contents: '' } }]);
});
it('returns two modules', () => {
expect(
updateArtifacts({
packageFileName: '',
updatedDeps: [{ depName: 'renovate' }, { depName: 'renovate-pro' }],
newPackageFileContent: '',
config: {},
}),
).toMatchObject([
{ file: { type: 'addition', path: 'renovate', contents: '' } },
{ file: { type: 'addition', path: 'renovate-pro', contents: '' } },
]);
});
});
});