File tree 2 files changed +28
-0
lines changed
2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -139,6 +139,14 @@ test('external modules option', function (t) {
139
139
} ) ;
140
140
} ) ;
141
141
142
+ test ( 'when a file is specified both in a glob and explicitly, it is only documented once' , function ( t ) {
143
+ documentation ( [ 'build fixture/simple.input.js fixture/simple.input.*' ] , function ( err , data ) {
144
+ t . ifError ( err ) ;
145
+ t . equal ( data . length , 1 , 'File is documented only once' ) ;
146
+ t . end ( ) ;
147
+ } ) ;
148
+ } ) ;
149
+
142
150
test ( 'extension option' , function ( t ) {
143
151
documentation ( [ 'build fixture/extension/index.otherextension ' +
144
152
'--requireExtension=otherextension --parseExtension=otherextension' ] , function ( err , data ) {
Original file line number Diff line number Diff line change @@ -82,6 +82,26 @@ test('parse - @augments', function (t) {
82
82
t . end ( ) ;
83
83
} ) ;
84
84
85
+ /*
86
+ * Dossier-style augments tag
87
+ * https://github.com/google/closure-library/issues/746
88
+ */
89
+ test ( 'parse - @augments in dossier style' , function ( t ) {
90
+ t . equal ( evaluate ( function ( ) {
91
+ /** @augments {Foo } */
92
+ } ) [ 0 ] . augments [ 0 ] . name , 'Foo' , 'augments' ) ;
93
+
94
+ t . end ( ) ;
95
+ } ) ;
96
+
97
+ test ( 'parse - @augments of complex passes through' , function ( t ) {
98
+ t . deepEqual ( evaluate ( function ( ) {
99
+ /** @augments {function() } */
100
+ } ) [ 0 ] . augments , [ ] ) ;
101
+
102
+ t . end ( ) ;
103
+ } ) ;
104
+
85
105
test ( 'parse - @author' , function ( t ) {
86
106
t . end ( ) ;
87
107
} ) ;
You can’t perform that action at this time.
0 commit comments