File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -351,12 +351,18 @@ describe('markdown-toolbbar-element', function() {
351351 } )
352352
353353 describe ( 'lists' , function ( ) {
354- it ( 'turns line into list when you click the unordered list icon' , function ( ) {
354+ it ( 'turns line into list when you click the unordered list icon with selection ' , function ( ) {
355355 setVisualValue ( 'One\n|Two|\nThree\n' )
356356 clickToolbar ( 'md-unordered-list' )
357357 assert . equal ( 'One\n\n- |Two|\n\nThree\n' , visualValue ( ) )
358358 } )
359359
360+ it ( 'turns line into list when you click the unordered list icon without selection' , function ( ) {
361+ setVisualValue ( 'One\n|Two and two\nThree\n' )
362+ clickToolbar ( 'md-unordered-list' )
363+ assert . equal ( 'One\n\n- |Two and two\n\nThree\n' , visualValue ( ) )
364+ } )
365+
360366 it ( 'turns multiple lines into list when you click the unordered list icon' , function ( ) {
361367 setVisualValue ( 'One\n|Two\nThree|\n' )
362368 clickToolbar ( 'md-unordered-list' )
You can’t perform that action at this time.
0 commit comments