File tree 2 files changed +18
-2
lines changed
2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,24 @@ test('inferKind', function() {
58
58
) . kind
59
59
) . toBe ( 'function' ) ;
60
60
61
+ expect (
62
+ inferKind ( toComment ( '/** Exported interface */' + 'interface myinter {}' ) )
63
+ . kind
64
+ ) . toBe ( 'interface' ) ;
65
+
66
+ expect (
67
+ inferKind (
68
+ toComment (
69
+ '/** Exported interface */' + 'module.exports.foo = function() {}'
70
+ )
71
+ ) . kind
72
+ ) . toBe ( 'function' ) ;
73
+
74
+ expect (
75
+ inferKind ( toComment ( 'class A { /** Exported interface */' + 'foo: 1 }' ) )
76
+ . kind
77
+ ) . toBe ( 'member' ) ;
78
+
61
79
expect (
62
80
inferKind (
63
81
toComment ( '/** Exported function */' + 'export function foo() {}' )
Original file line number Diff line number Diff line change @@ -12,8 +12,6 @@ import { walk } from './walk';
12
12
* @return {Array<Object> } filtered comments
13
13
*/
14
14
function filterAccess ( levels : Array < string > , comments : Array < Comment > ) {
15
- levels = levels || [ 'public' , 'undefined' , 'protected' ] ;
16
-
17
15
function filter ( comment ) {
18
16
return (
19
17
comment . kind === 'note' ||
You can’t perform that action at this time.
0 commit comments