Skip to content

Commit

Permalink
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
Browse files Browse the repository at this point in the history
…-fix'
  • Loading branch information
kibanamachine committed Aug 22, 2023
1 parent 8f7bb55 commit 0f43332
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,25 +166,21 @@ describe('DocViewTable at Discover', () => {
expect(rowComponent.length).toBe(1);
});

(
[
'addInclusiveFilterButton',
'toggleColumnButton',
'underscoreWarning',
] as const
).forEach((element) => {
const elementExist = check[element];

if (typeof elementExist === 'boolean') {
const btn = findTestSubject(rowComponent, element, '^=');

it(`renders ${element} for '${check._property}' correctly`, () => {
const disabled = btn.length ? btn.props().disabled : true;
const clickAble = btn.length && !disabled ? true : false;
expect(clickAble).toBe(elementExist);
});
(['addInclusiveFilterButton', 'toggleColumnButton', 'underscoreWarning'] as const).forEach(
(element) => {
const elementExist = check[element];

if (typeof elementExist === 'boolean') {
const btn = findTestSubject(rowComponent, element, '^=');

it(`renders ${element} for '${check._property}' correctly`, () => {
const disabled = btn.length ? btn.props().disabled : true;
const clickAble = btn.length && !disabled ? true : false;
expect(clickAble).toBe(elementExist);
});
}
}
});
);
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,13 @@ export const TableFieldValue = ({
rawValue,
ignoreReason,
}: TableFieldValueProps) => {

const valueClassName = classNames({
// eslint-disable-next-line @typescript-eslint/naming-convention
kbnDocViewer__value: true,
});
return (
<Fragment>
{(ignoreReason) && (
{ignoreReason && (
<EuiFlexGroup gutterSize="s">
{ignoreReason && (
<EuiFlexItem grow={false}>
Expand Down

0 comments on commit 0f43332

Please sign in to comment.