0
0
mirror of https://github.com/renovatebot/renovate.git synced 2024-12-22 21:48:32 +00:00
renovatebot_renovate/lib/config/migrations/custom/base-branch-migration.spec.ts
2023-11-07 15:50:29 +00:00

26 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'],
},
);
});
});