0
0
Fork 0
mirror of https://github.com/renovatebot/renovate.git synced 2025-01-11 13:48:55 +00:00
renovatebot_renovate/lib/config/migrations/custom/suppress-notifications-migration.spec.ts
2023-11-07 15:50:29 +00:00

38 lines
931 B
TypeScript

import { SuppressNotificationsMigration } from './suppress-notifications-migration';
describe('config/migrations/custom/suppress-notifications-migration', () => {
it('should remomve prEditNotification from array', () => {
expect(SuppressNotificationsMigration).toMigrate(
{
suppressNotifications: ['test', 'prEditNotification'],
},
{
suppressNotifications: ['test'],
},
);
});
it('should not migrate array without prEditNotification', () => {
expect(SuppressNotificationsMigration).toMigrate(
{
suppressNotifications: ['test'],
},
{
suppressNotifications: ['test'],
},
false,
);
});
it('should not migrate empty array', () => {
expect(SuppressNotificationsMigration).toMigrate(
{
suppressNotifications: [],
},
{
suppressNotifications: [],
},
false,
);
});
});