@@ -217,19 +217,19 @@ describe('Tokenizer', function() {
217217 it ( 'tokenizes a comment as "COMMENT"' , function ( ) {
218218 var result = tokenize ( "foo {{! this is a comment }} bar {{ baz }}" ) ;
219219 shouldMatchTokens ( result , [ 'CONTENT' , 'COMMENT' , 'CONTENT' , 'OPEN' , 'ID' , 'CLOSE' ] ) ;
220- shouldBeToken ( result [ 1 ] , "COMMENT" , " this is a comment " ) ;
220+ shouldBeToken ( result [ 1 ] , "COMMENT" , "{{! this is a comment }} " ) ;
221221 } ) ;
222222
223223 it ( 'tokenizes a block comment as "COMMENT"' , function ( ) {
224224 var result = tokenize ( "foo {{!-- this is a {{comment}} --}} bar {{ baz }}" ) ;
225225 shouldMatchTokens ( result , [ 'CONTENT' , 'COMMENT' , 'CONTENT' , 'OPEN' , 'ID' , 'CLOSE' ] ) ;
226- shouldBeToken ( result [ 1 ] , "COMMENT" , " this is a {{comment}} " ) ;
226+ shouldBeToken ( result [ 1 ] , "COMMENT" , "{{!-- this is a {{comment}} --}} " ) ;
227227 } ) ;
228228
229229 it ( 'tokenizes a block comment with whitespace as "COMMENT"' , function ( ) {
230230 var result = tokenize ( "foo {{!-- this is a\n{{comment}}\n--}} bar {{ baz }}" ) ;
231231 shouldMatchTokens ( result , [ 'CONTENT' , 'COMMENT' , 'CONTENT' , 'OPEN' , 'ID' , 'CLOSE' ] ) ;
232- shouldBeToken ( result [ 1 ] , "COMMENT" , " this is a\n{{comment}}\n" ) ;
232+ shouldBeToken ( result [ 1 ] , "COMMENT" , "{{!-- this is a\n{{comment}}\n--}} " ) ;
233233 } ) ;
234234
235235 it ( 'tokenizes open and closing blocks as OPEN_BLOCK, ID, CLOSE ..., OPEN_ENDBLOCK ID CLOSE' , function ( ) {
0 commit comments