Skip to content

Commit

Permalink
fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
gmmorris committed Jun 26, 2020
1 parent b89c274 commit 865d03a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion x-pack/plugins/alerts/server/saved_objects/migrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function changeAlertingConsumer(
consumerMigration.set('alerting', 'alerts');

return encryptedSavedObjects.createMigration<RawAlert, RawAlert>(
function shouldbeMigrated(doc): doc is SavedObjectUnsanitizedDoc<RawAlert> {
function shouldBeMigrated(doc): doc is SavedObjectUnsanitizedDoc<RawAlert> {
return consumerMigration.has(doc.attributes.consumer);
},
(doc: SavedObjectUnsanitizedDoc<RawAlert>): SavedObjectUnsanitizedDoc<RawAlert> => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ export default function createGetTests({ getService }: FtrProviderContext) {

describe('migrations', () => {
before(async () => {
await esArchiver.load('alerting');
await esArchiver.load('alerts');
});

after(async () => {
await esArchiver.unload('alerting');
await esArchiver.unload('alerts');
});

it('7.9.0 migrates the `alerting` consumer to be the `alerts`', async () => {
Expand Down

0 comments on commit 865d03a

Please sign in to comment.