Skip to content

Commit

Permalink
address review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
alisonelizabeth committed Feb 24, 2021
1 parent eac1feb commit b948291
Showing 1 changed file with 18 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,22 +181,24 @@ describe('getReindexWarnings', () => {
});

if (mockKibanaSemverVersion.major === 7) {
it('returns customTypeName for non-_doc mapping types', () => {
expect(
getReindexWarnings({
settings: {},
mappings: { doc: {} },
})
).toEqual([ReindexWarning.customTypeName]);
});

it('does not return customTypeName for _doc mapping types', () => {
expect(
getReindexWarnings({
settings: {},
mappings: { _doc: {} },
})
).toEqual([]);
describe('customTypeName warning', () => {
it('returns customTypeName for non-_doc mapping types', () => {
expect(
getReindexWarnings({
settings: {},
mappings: { doc: {} },
})
).toEqual([ReindexWarning.customTypeName]);
});

it('does not return customTypeName for _doc mapping types', () => {
expect(
getReindexWarnings({
settings: {},
mappings: { _doc: {} },
})
).toEqual([]);
});
});
}
});

0 comments on commit b948291

Please sign in to comment.