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
33 lines
796 B
TypeScript
33 lines
796 B
TypeScript
import { TrustLevelMigration } from './trust-level-migration.ts';
|
|
|
|
describe('config/migrations/custom/trust-level-migration', () => {
|
|
it('should handle hight level', async () => {
|
|
await expect(TrustLevelMigration).toMigrate(
|
|
{
|
|
trustLevel: 'high',
|
|
},
|
|
{
|
|
allowCustomCrateRegistries: true,
|
|
allowScripts: true,
|
|
exposeAllEnv: true,
|
|
},
|
|
);
|
|
});
|
|
|
|
it('should not rewrite provided properties', async () => {
|
|
await expect(TrustLevelMigration).toMigrate(
|
|
{
|
|
allowCustomCrateRegistries: false,
|
|
allowScripts: false,
|
|
exposeAllEnv: false,
|
|
trustLevel: 'high',
|
|
},
|
|
{
|
|
allowCustomCrateRegistries: false,
|
|
allowScripts: false,
|
|
exposeAllEnv: false,
|
|
},
|
|
);
|
|
});
|
|
});
|