mirror of https://github.com/renovatebot/renovate
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'],
|
|
},
|
|
);
|
|
});
|
|
});
|