Skip to content

Commit 9affbbd

Browse files
committed
Add test to ensure quote without selection works
1 parent baec93f commit 9affbbd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,12 @@ describe('markdown-toolbbar-element', function() {
300300
assert.equal('> |Butts|\n\nThe quick brown fox jumps over the lazy dog', visualValue())
301301
})
302302

303+
it('quotes full line of text when you click the quote icon', function() {
304+
setVisualValue('|The quick brown fox jumps over the lazy dog')
305+
clickToolbar('md-quote')
306+
assert.equal('> |The quick brown fox jumps over the lazy dog', visualValue())
307+
})
308+
303309
it('prefixes newlines when quoting an existing line on an existing', function() {
304310
setVisualValue('The quick brown fox jumps over the lazy dog|Butts|')
305311
clickToolbar('md-quote')

0 commit comments

Comments
 (0)