0
0
Fork 0
mirror of https://github.com/renovatebot/renovate.git synced 2025-03-12 15:26:58 +00:00
renovatebot_renovate/lib/config/migrations/custom/fetch-release-notes-migration.spec.ts
2023-11-07 15:50:29 +00:00

46 lines
994 B
TypeScript

import { FetchReleaseNotesMigration } from './fetch-release-notes-migration';
describe('config/migrations/custom/fetch-release-notes-migration', () => {
it('migrates', () => {
expect(FetchReleaseNotesMigration).toMigrate(
{
fetchReleaseNotes: false as never,
},
{
fetchChangeLogs: 'off',
},
);
expect(FetchReleaseNotesMigration).toMigrate(
{
fetchReleaseNotes: true as never,
},
{
fetchChangeLogs: 'pr',
},
);
expect(FetchReleaseNotesMigration).toMigrate(
{
fetchReleaseNotes: 'pr',
},
{
fetchChangeLogs: 'pr',
},
);
expect(FetchReleaseNotesMigration).toMigrate(
{
fetchReleaseNotes: 'off',
},
{
fetchChangeLogs: 'off',
},
);
expect(FetchReleaseNotesMigration).toMigrate(
{
fetchReleaseNotes: 'branch',
},
{
fetchChangeLogs: 'branch',
},
);
});
});