@@ -85,7 +85,6 @@ test('inferMembership - explicit', function (t) {
8585 Foo . prototype = {
8686 /**
8787 * Test
88- * @returns {undefined } bar
8988 */
9089 bar : function ( ) { }
9190 } ;
@@ -107,8 +106,7 @@ test('inferMembership - explicit', function (t) {
107106
108107 t . deepEqual ( _ . pick ( evaluate ( function ( ) {
109108 var Foo = {
110- /** Test
111- * @returns {undefined } bar */
109+ /** Test */
112110 baz : function ( ) { }
113111 } ;
114112 return Foo ;
@@ -118,8 +116,7 @@ test('inferMembership - explicit', function (t) {
118116 } , 'variable object assignment, function' ) ;
119117
120118 t . deepEqual ( _ . pick ( evaluate ( function ( ) {
121- /** Test
122- * @returns {undefined } bar */
119+ /** Test */
123120 module . exports = function ( ) { } ;
124121 } ) [ 0 ] , [ 'memberof' , 'scope' ] ) , {
125122 memberof : 'module' ,
@@ -138,10 +135,7 @@ test('inferMembership - explicit', function (t) {
138135
139136 t . deepEqual ( _ . pick ( evaluate ( function ( ) {
140137 lend ( /** @lends Foo */ {
141- /**
142- * Test
143- * @returns {undefined } nothing
144- */
138+ /** Test */
145139 bar : function ( ) { }
146140 } ) ;
147141 } ) [ 1 ] , [ 'memberof' , 'scope' ] ) , {
@@ -161,10 +155,7 @@ test('inferMembership - explicit', function (t) {
161155
162156 t . deepEqual ( _ . pick ( evaluate ( function ( ) {
163157 lend ( /** @lends Foo.prototype */ {
164- /**
165- * Test
166- * @returns {number } nothing
167- */
158+ /** Test */
168159 bar : function ( ) { }
169160 } ) ;
170161 } ) [ 1 ] , [ 'memberof' , 'scope' ] ) , {
@@ -193,7 +184,7 @@ test('inferMembership - exports', function (t) {
193184
194185 t . equal ( evaluate ( function ( ) {
195186 /** @module mod */
196- /** @returns { undefined } foo */
187+ /** foo */
197188 exports . foo = function ( ) { } ;
198189 } ) [ 1 ] . memberof , 'mod' ) ;
199190
@@ -214,21 +205,21 @@ test('inferMembership - exports', function (t) {
214205 t . equal ( evaluate ( function ( ) {
215206 /** @module mod */
216207 exports . foo = {
217- /** @returns { undefined } bar */
208+ /** bar */
218209 bar : function ( ) { }
219210 } ;
220211 } ) [ 1 ] . memberof , 'mod.foo' ) ;
221212
222213 t . equal ( evaluate ( function ( ) {
223214 /** @module mod */
224- /** @returns { undefined } bar */
215+ /** bar */
225216 exports . foo . prototype . bar = function ( ) { } ;
226217 } ) [ 1 ] . memberof , 'mod.foo' ) ;
227218
228219 t . equal ( evaluate ( function ( ) {
229220 /** @module mod */
230221 exports . foo . prototype = {
231- /** @returns { undefined } bar */
222+ /** bar */
232223 bar : function ( ) { }
233224 } ;
234225 } ) [ 1 ] . memberof , 'mod.foo' ) ;
@@ -245,7 +236,7 @@ test('inferMembership - module.exports', function (t) {
245236
246237 t . equal ( evaluate ( function ( ) {
247238 /** @module mod */
248- /** @returns { undefined } foo */
239+ /** foo */
249240 module . exports . foo = function ( ) { } ;
250241 } ) [ 1 ] . memberof , 'mod' ) ;
251242
@@ -266,21 +257,21 @@ test('inferMembership - module.exports', function (t) {
266257 t . equal ( evaluate ( function ( ) {
267258 /** @module mod */
268259 module . exports . foo = {
269- /** @returns { undefined } bar */
260+ /** bar */
270261 bar : function ( ) { }
271262 } ;
272263 } ) [ 1 ] . memberof , 'mod.foo' ) ;
273264
274265 t . equal ( evaluate ( function ( ) {
275266 /** @module mod */
276- /** @returns { undefined } bar */
267+ /** bar */
277268 module . exports . prototype . bar = function ( ) { } ;
278269 } ) [ 1 ] . memberof , 'mod' ) ;
279270
280271 t . equal ( evaluate ( function ( ) {
281272 /** @module mod */
282273 module . exports . prototype = {
283- /** @returns { undefined } bar */
274+ /** bar */
284275 bar : function ( ) { }
285276 } ;
286277 } ) [ 1 ] . memberof , 'mod' ) ;
@@ -297,7 +288,6 @@ test('inferMembership - module.exports', function (t) {
297288 /**
298289 * @module mod
299290 * @name exports
300- * @returns {undefined } bar
301291 */
302292 module . exports = function ( ) { } ;
303293 } ) [ 0 ] . memberof , undefined ) ;
0 commit comments