From 077d52b76baf82928ef79e715cd44a8733830482 Mon Sep 17 00:00:00 2001 From: Joe Portner <5295965+jportner@users.noreply.github.com> Date: Fri, 31 Jul 2020 07:41:13 -0400 Subject: [PATCH] Fix type check --- test/api_integration/apis/saved_objects/migrations.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/api_integration/apis/saved_objects/migrations.ts b/test/api_integration/apis/saved_objects/migrations.ts index dc3a41c88652f..9997d9710e212 100644 --- a/test/api_integration/apis/saved_objects/migrations.ts +++ b/test/api_integration/apis/saved_objects/migrations.ts @@ -320,8 +320,7 @@ export default ({ getService }: FtrProviderContext) => { const { body } = await esClient.cat.indices({ index: '.migration-c*', format: 'json' }); // It only created the original and the dest - const indices = body.map((entry) => entry.index).sort(); - assert.deepEqual(indices, ['.migration-c_1', '.migration-c_2']); + expect(_.map(body, 'index').sort()).to.eql(['.migration-c_1', '.migration-c_2']); // The docs in the original index are unchanged expect(await fetchDocs(esClient, `${index}_1`)).to.eql([