Skip to content

Commit

Permalink
test(require-description): check works for single line blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
brettz9 committed Feb 16, 2021
1 parent 74bbe38 commit a84eb91
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9116,6 +9116,11 @@ class TestClass {
*/
function quux () {
}
/** Single line */
function quux () {
}
````
Expand Down
8 changes: 8 additions & 0 deletions test/rules/assertions/requireDescription.js
Original file line number Diff line number Diff line change
Expand Up @@ -840,6 +840,14 @@ export default {
*/
function quux () {
}
`,
},
{
code: `
/** Single line */
function quux () {
}
`,
},
Expand Down

0 comments on commit a84eb91

Please sign in to comment.