Skip to content

Commit

Permalink
Fix API integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
sebelga committed Jan 24, 2020
1 parent de48af4 commit 028bb28
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ export default function({ getService }) {

const { body } = await getIndexMapping(index).expect(200);

expect(body.mapping).to.eql(mappings);
// As, on 7.x we require the mappings with type (include_type_name), the default "_doc" type is returned
expect(body.mapping).to.eql({ _doc: mappings });
});
});
}

0 comments on commit 028bb28

Please sign in to comment.