Skip to content

Commit

Permalink
removed metric migration from test
Browse files Browse the repository at this point in the history
  • Loading branch information
gmmorris committed Jun 18, 2020
1 parent a9ee1c4 commit 925ba5e
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions x-pack/plugins/alerts/server/saved_objects/migrations.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ describe('7.9.0', () => {
expect(encryptedSavedObjectsSetup.createMigration).toHaveBeenCalledWith(
expect.any(Function),
expect.any(Function),
encryptedType,
encryptedType
);
});
Expand All @@ -58,20 +57,6 @@ describe('7.9.0', () => {
},
});
});

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

function getMockData(
Expand Down

0 comments on commit 925ba5e

Please sign in to comment.