mirror of
https://github.com/renovatebot/renovate.git
synced 2024-12-22 21:48:32 +00:00
26 lines
528 B
TypeScript
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'],
|
|
},
|
|
);
|
|
});
|
|
});
|