0
0
mirror of https://github.com/renovatebot/renovate.git synced 2024-12-22 13:38:32 +00:00
renovatebot_renovate/lib/config/migrations/custom/suppress-notifications-migration.spec.ts
2023-11-07 15:50:29 +00:00

39 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,
);
});
});