Skip to content

Commit

Permalink
Fix component integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
sebelga committed Jun 4, 2020
1 parent fe734bd commit 5138bab
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ import { IndexTemplatesTabTestBed, setup } from './index_templates_tab.helpers';

const removeWhiteSpaceOnArrayValues = (array: any[]) =>
array.map((value) => {
if (!value.trim) {
if (typeof value !== 'string') {
return value;
}
return value.trim();

// Convert non breaking spaces ( ) to ordinary space
return value.trim().replace(/\s/g, ' ');
});

describe('Index Templates tab', () => {
Expand Down Expand Up @@ -148,7 +150,7 @@ describe('Index Templates tab', () => {
ilmPolicyName,
composedOfString,
priorityFormatted,
'MSA', // Mappings Settings Aliases badges
'M S A', // Mappings Settings Aliases badges
]);
});

Expand Down

0 comments on commit 5138bab

Please sign in to comment.