Skip to content

Commit

Permalink
corrected var name
Browse files Browse the repository at this point in the history
  • Loading branch information
gmmorris committed Jul 15, 2020
1 parent d1cc1cd commit e9ac83c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions x-pack/plugins/alerts/server/saved_objects/migrations.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ describe('7.10.0', () => {
});

test('changes nothing on alerts by other plugins', () => {
const migration790 = getMigrations(encryptedSavedObjectsSetup)['7.10.0'];
const migration710 = getMigrations(encryptedSavedObjectsSetup)['7.10.0'];
const alert = getMockData({});
expect(migration790(alert, { log })).toMatchObject(alert);
expect(migration710(alert, { log })).toMatchObject(alert);

expect(encryptedSavedObjectsSetup.createMigration).toHaveBeenCalledWith(
expect.any(Function),
Expand All @@ -67,11 +67,11 @@ describe('7.10.0', () => {
});

test('migrates the consumer for metrics', () => {
const migration790 = getMigrations(encryptedSavedObjectsSetup)['7.10.0'];
const migration710 = getMigrations(encryptedSavedObjectsSetup)['7.10.0'];
const alert = getMockData({
consumer: 'metrics',
});
expect(migration790(alert, { log })).toMatchObject({
expect(migration710(alert, { log })).toMatchObject({
...alert,
attributes: {
...alert.attributes,
Expand Down

0 comments on commit e9ac83c

Please sign in to comment.