Skip to content

Commit 891f80d

Browse files
committed
Add test for uppercased case sensitivity
1 parent 5c1807c commit 891f80d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test/test.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,12 +199,19 @@ describe('markdown-toolbar-element', function () {
199199
})
200200

201201
describe('hotkey case-sensitivity', function () {
202-
it('does not bold selected text when using the capitalized hotkey', function () {
202+
it('does not bold selected text when using the uppercased hotkey', function () {
203203
focus()
204204
setVisualValue('The |quick| brown fox jumps over the lazy dog')
205205
pressHotkey('B') // capital `B` instead of lowercase `b`
206206
assert.equal('The |quick| brown fox jumps over the lazy dog', visualValue())
207207
})
208+
209+
it('does not codeblock selected text when using the lowercased hotkey', function () {
210+
focus()
211+
setVisualValue('The |quick| brown fox jumps over the lazy dog')
212+
pressHotkey('c') // lowercase `c` instead of uppercase `C`
213+
assert.equal('The |quick| brown fox jumps over the lazy dog', visualValue())
214+
})
208215
})
209216

210217
describe('bold', function () {

0 commit comments

Comments
 (0)