mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-15 17:16:25 +00:00
32 lines
936 B
TypeScript
32 lines
936 B
TypeScript
import updateArtifacts from './artifacts';
|
|
|
|
describe('modules/manager/git-submodules/artifact', () => {
|
|
describe('updateArtifacts()', () => {
|
|
it('returns empty content', () => {
|
|
expect(
|
|
updateArtifacts({
|
|
packageFileName: '',
|
|
updatedDeps: [{ depName: '' }],
|
|
newPackageFileContent: '',
|
|
config: {},
|
|
})
|
|
).toMatchSnapshot([
|
|
{ file: { type: 'addition', path: '', contents: '' } },
|
|
]);
|
|
});
|
|
|
|
it('returns two modules', () => {
|
|
expect(
|
|
updateArtifacts({
|
|
packageFileName: '',
|
|
updatedDeps: [{ depName: 'renovate' }, { depName: 'renovate-pro' }],
|
|
newPackageFileContent: '',
|
|
config: {},
|
|
})
|
|
).toMatchSnapshot([
|
|
{ file: { type: 'addition', path: 'renovate', contents: '' } },
|
|
{ file: { type: 'addition', path: 'renovate-pro', contents: '' } },
|
|
]);
|
|
});
|
|
});
|
|
});
|