Skip to content

Commit fd42a50

Browse files
committed
Update text to expect EoL as selection start
when there was no selection to begin with, an empty list item is created currently we default the selection range to |1. | which means when user starts typing, 1. is removed. This updates the test to expect selection start at end of line, so user can start typing the first item.
1 parent 3b9c9de commit fd42a50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ describe('markdown-toolbbar-element', function() {
398398
it('creates ordered list without selection', function() {
399399
setVisualValue('apple\n|pear\nbanana\n')
400400
clickToolbar('md-ordered-list')
401-
assert.equal('apple\n\n|1. |\n\npear\nbanana\n', visualValue())
401+
assert.equal('apple\n\n1. |\n\npear\nbanana\n', visualValue())
402402
})
403403

404404
it('creates ordered list by selecting one line', function() {

0 commit comments

Comments
 (0)