Skip to content

Commit

Permalink
Add code comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ruflin committed Nov 14, 2019
1 parent 73594e8 commit 64d0e15
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions x-pack/test/epm_api_integration/apis/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ export default function({ getService }: FtrProviderContext) {
name: templateName,
body,
});
// Checks if template loading worked as expected
expect(response).to.eql({ acknowledged: true });

const indexTemplate = await es.indices.getTemplate({ name: templateName });
// Checks if the content of the template that was loaded is as expected
expect(indexTemplate[templateName].index_patterns).to.eql([indexPattern]);
});
}

0 comments on commit 64d0e15

Please sign in to comment.