We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 973f425 commit 30d2194Copy full SHA for 30d2194
test/rules/assertions/requireReturnsCheck.js
@@ -89,6 +89,23 @@ export default {
89
message: 'JSDoc @returns declaration present but return expression not available in function.'
90
}
91
]
92
+ },
93
+ {
94
+ code: `
95
+ class Foo {
96
+ /**
97
+ * @returns {string}
98
+ */
99
+ bar () {
100
+ }
101
102
+ `,
103
+ errors: [
104
105
+ line: 3,
106
+ message: 'JSDoc @returns declaration present but return expression not available in function.'
107
108
+ ]
109
110
],
111
valid: [
0 commit comments