mirror of
https://github.com/renovatebot/renovate.git
synced 2026-11-02 10:33:39 +00:00
930cf6633c
fix: Additional vi.mock path corrections and prettier formatting
37 lines
881 B
TypeScript
37 lines
881 B
TypeScript
import { PlatformCommitMigration } from './platform-commit-migration.ts';
|
|
|
|
describe('config/migrations/custom/platform-commit-migration', () => {
|
|
it('should migrate platformCommit=true to platformCommit=enabled', async () => {
|
|
await expect(PlatformCommitMigration).toMigrate(
|
|
{
|
|
platformCommit: true,
|
|
},
|
|
{
|
|
platformCommit: 'enabled',
|
|
},
|
|
);
|
|
});
|
|
|
|
it('should migrate platformCommit=false to platformCommit=disabled', async () => {
|
|
await expect(PlatformCommitMigration).toMigrate(
|
|
{
|
|
platformCommit: false,
|
|
},
|
|
{
|
|
platformCommit: 'disabled',
|
|
},
|
|
);
|
|
});
|
|
|
|
it('should not migrate platformCommit=auto', async () => {
|
|
await expect(PlatformCommitMigration).not.toMigrate(
|
|
{
|
|
platformCommit: 'auto',
|
|
},
|
|
{
|
|
platformCommit: 'auto',
|
|
},
|
|
);
|
|
});
|
|
});
|