@@ -127,6 +127,7 @@ describe('jsdoc', function() {
127
127
'/**\n' +
128
128
' * Description\n' +
129
129
' * with a new line\n' +
130
+ ' *\n' +
130
131
' * @tag1 value\n' +
131
132
' * @param {Type} some long\n' +
132
133
' * description of param\n' +
@@ -138,25 +139,26 @@ describe('jsdoc', function() {
138
139
} ) ;
139
140
140
141
it ( 'should parses comment and create all tags and types' , function ( ) {
142
+ expect ( c1 . description ) . to . eq ( 'Description\n with a new line\n' ) ;
141
143
expect ( c1 . tags . length ) . to . eq ( 4 ) ;
142
144
143
145
var tag1 = c1 . tags [ 0 ] ;
144
146
expect ( tag1 . id ) . to . eq ( 'tag1' ) ;
145
- expect ( tag1 . loc ) . to . eql ( new Location ( 8 , 5 ) ) ;
147
+ expect ( tag1 . loc ) . to . eql ( new Location ( 9 , 5 ) ) ;
146
148
expect ( tag1 . name . value ) . to . eq ( 'value' ) ;
147
- expect ( tag1 . name . loc ) . to . eql ( new Location ( 8 , 11 ) ) ;
149
+ expect ( tag1 . name . loc ) . to . eql ( new Location ( 9 , 11 ) ) ;
148
150
149
151
var param = c1 . tags [ 1 ] ;
150
152
expect ( param . id ) . to . eq ( 'param' ) ;
151
- expect ( param . loc ) . to . eql ( new Location ( 9 , 5 ) ) ;
153
+ expect ( param . loc ) . to . eql ( new Location ( 10 , 5 ) ) ;
152
154
expect ( param . type . value ) . to . eq ( 'Type' ) ;
153
- expect ( param . type . loc ) . to . eql ( new Location ( 9 , 13 ) ) ;
155
+ expect ( param . type . loc ) . to . eql ( new Location ( 10 , 13 ) ) ;
154
156
expect ( param . name . value ) . to . eq ( 'some' ) ;
155
- expect ( param . name . loc ) . to . eql ( new Location ( 9 , 19 ) ) ;
157
+ expect ( param . name . loc ) . to . eql ( new Location ( 10 , 19 ) ) ;
156
158
157
159
var abs = c1 . tags [ 2 ] ;
158
160
expect ( abs . id ) . to . eq ( 'abstract' ) ;
159
- expect ( abs . loc ) . to . eql ( new Location ( 11 , 5 ) ) ;
161
+ expect ( abs . loc ) . to . eql ( new Location ( 12 , 5 ) ) ;
160
162
161
163
var example = c1 . tags [ 3 ] ;
162
164
expect ( example . id ) . to . eq ( 'example' ) ;
0 commit comments