File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -276,6 +276,38 @@ test('inferMembership - explicit', function() {
276
276
scope : 'instance'
277
277
} ) ;
278
278
279
+ expect (
280
+ pick (
281
+ evaluate ( function ( ) {
282
+ /** @memberof bar */
283
+ class Foo {
284
+ /** */
285
+ baz ( ) { }
286
+ }
287
+ } ) [ 1 ] , // [0] is an description for class Foo
288
+ [ 'memberof' , 'scope' ]
289
+ )
290
+ ) . toEqual ( {
291
+ memberof : 'bar.Foo' ,
292
+ scope : 'instance'
293
+ } ) ;
294
+
295
+ expect (
296
+ pick (
297
+ evaluate ( function ( ) {
298
+ /** @memberof bar */
299
+ class Foo {
300
+ /** */
301
+ static baz ( ) { }
302
+ }
303
+ } ) [ 1 ] , // [0] is an description for class Foo
304
+ [ 'memberof' , 'scope' ]
305
+ )
306
+ ) . toEqual ( {
307
+ memberof : 'bar.Foo' ,
308
+ scope : 'static'
309
+ } ) ;
310
+
279
311
expect (
280
312
pick (
281
313
evaluate ( function ( ) {
You can’t perform that action at this time.
0 commit comments