diff --git a/x-pack/test/api_integration/apis/ml/modules/recognize_module.ts b/x-pack/test/api_integration/apis/ml/modules/recognize_module.ts index e75e5bef0b3dd..e56de84d94e48 100644 --- a/x-pack/test/api_integration/apis/ml/modules/recognize_module.ts +++ b/x-pack/test/api_integration/apis/ml/modules/recognize_module.ts @@ -237,7 +237,8 @@ export default ({ getService }: FtrProviderContext) => { const responseModuleIds = rspBody.map((module: { id: string }) => module.id).sort(); expect(responseModuleIds).to.eql( testData.expected.moduleIds.sort(), - `Expected matching module ids for index '${testData.indexPattern + `Expected matching module ids for index '${ + testData.indexPattern }' to be '${testData.expected.moduleIds.sort()}' (got '${responseModuleIds}')` ); });