renovate/lib/manager/git-submodules/artifact.spec.ts
Frédéric Marchand 4a8979e88c
fix(git-submodule): loop all updated submodules (#8185)
Co-authored-by: Jamie Magee <JamieMagee@users.noreply.github.com>
2021-01-04 20:51:59 +00:00

26 lines
662 B
TypeScript

import updateArtifacts from './artifacts';
describe('lib/manager/gitsubmodules/artifacts', () => {
describe('updateArtifacts()', () => {
it('returns empty content', () => {
expect(
updateArtifacts({
packageFileName: '',
updatedDeps: [''],
newPackageFileContent: '',
config: {},
})
).toMatchSnapshot();
});
it('returns two modules', () => {
expect(
updateArtifacts({
packageFileName: '',
updatedDeps: ['renovate', 'renovate-pro'],
newPackageFileContent: '',
config: {},
})
).toMatchSnapshot();
});
});
});