Skip to content

Commit

Permalink
Adding test cases for label tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jessebeach committed Jun 20, 2020
1 parent 1614b85 commit efaa4d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions __tests__/src/rules/control-has-associated-label-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ const alwaysValid = [
{ code: '<input type="datetime" />' },
{ code: '<input type="email" />' },
{ code: '<input type="file" />' },
{ code: '<input type="hidden" />' },
{ code: '<input type="hidden" name="bot-field"/>' },
{ code: '<input type="hidden" name="form-name" value="Contact Form"/>' },
{ code: '<input type="image" />' },
{ code: '<input type="month" />' },
{ code: '<input type="number" />' },
Expand Down
1 change: 1 addition & 0 deletions __tests__/src/rules/label-has-associated-control-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ const bothValid = [
const alwaysValid = [
{ code: '<div />' },
{ code: '<CustomElement />' },
{ code: '<input type="hidden" />' },
];

const htmlForInvalid = [
Expand Down

0 comments on commit efaa4d0

Please sign in to comment.