Skip to content

Commit

Permalink
Adding describe block to EuiMark unit test that omits screen reader…
Browse files Browse the repository at this point in the history
… helper text (#5802)

* Adding back describe blocks to EuiMark unit tests.
* Adding describe block to EuiMark unit tests.
  • Loading branch information
1Copenut authored Apr 19, 2022
1 parent cffdce0 commit e01a8eb
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions src/components/mark/mark.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,25 @@ describe('EuiMark', () => {
).toMatchSnapshot();
});

test('is rendered without CSS :before', () => {
expect(
render(
<EuiMark hasScreenReaderHelpText={false} {...requiredProps}>
Marked
</EuiMark>
)
).not.toHaveStyleRule('content', "' [highlight start] '");
});
describe('No screen reader helper text', () => {
test('is rendered without CSS :before', () => {
expect(
render(
<EuiMark hasScreenReaderHelpText={false} {...requiredProps}>
Marked
</EuiMark>
)
).not.toHaveStyleRule('content', "' [highlight start] '");
});

test('is rendered without CSS :after', () => {
expect(
render(
<EuiMark hasScreenReaderHelpText={false} {...requiredProps}>
Marked
</EuiMark>
)
).not.toHaveStyleRule('content', "' [highlight end] '");
test('is rendered without CSS :after', () => {
expect(
render(
<EuiMark hasScreenReaderHelpText={false} {...requiredProps}>
Marked
</EuiMark>
)
).not.toHaveStyleRule('content', "' [highlight end] '");
});
});
});

0 comments on commit e01a8eb

Please sign in to comment.