renovate/lib/modules/manager/git-submodules/artifact.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

32 lines
930 B
TypeScript

import { updateArtifacts } from '.';
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: '' } },
]);
});
});
});