Skip to content

Commit

Permalink
Better error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcenizal committed Jul 1, 2020
1 parent 0f19f12 commit 6f064c1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default function ({ getService }) {

// Composable index templates may have been created by other apps, e.g. Ingest Manager,
// so we don't make any assertion about these contents.
expect(Array.isArray(allTemplates.templates)).to.eql(true);
expect(allTemplates.templates).to.be.an('array');

// Legacy templates
const legacyTemplate = allTemplates.legacyTemplates.find(
Expand Down

0 comments on commit 6f064c1

Please sign in to comment.