Skip to content

Commit

Permalink
improve test description
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Apr 25, 2020
1 parent 6550f53 commit dc942fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/material-ui/src/FormLabel/FormLabel.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('<FormLabel />', () => {
}));

describe('prop: required', () => {
it('should show an asterisk if required is set', () => {
it('should visually show an asterisk but not include it in the a11y tree', () => {
const { container } = render(<FormLabel required>name</FormLabel>);

expect(container.querySelector('label')).to.have.text('name\u2009*');
Expand Down

0 comments on commit dc942fc

Please sign in to comment.