0
0
Fork 0
mirror of https://github.com/renovatebot/renovate.git synced 2025-01-11 13:48:55 +00:00
renovatebot_renovate/lib/config/migrations/custom/base-branch-migration.spec.ts
2023-11-07 15:50:29 +00:00

25 lines
528 B
TypeScript

import { BaseBranchMigration } from './base-branch-migration';
describe('config/migrations/custom/base-branch-migration', () => {
it('should migrate value to array', () => {
expect(BaseBranchMigration).toMigrate(
{
baseBranch: 'test',
},
{
baseBranches: ['test'],
},
);
});
it('should migrate array', () => {
expect(BaseBranchMigration).toMigrate(
{
baseBranch: ['test'],
} as any,
{
baseBranches: ['test'],
},
);
});
});