Skip to content

Commit e39438a

Browse files
author
Durgesh Ahire
committed
yabwe#1127 | Add Test cases
1 parent f8412b3 commit e39438a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

spec/placeholder.spec.js

+6
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ describe('MediumEditor.extensions.placeholder TestCase', function () {
4141
expect(editor.elements[0].className).not.toContain('medium-editor-placeholder');
4242
});
4343

44+
it('should not set a placeholder for elements with table', function () {
45+
this.el.innerHTML = '<table></table>';
46+
var editor = this.newMediumEditor('.editor');
47+
expect(editor.elements[0].className).not.toContain('medium-editor-placeholder');
48+
});
49+
4450
it('should set placeholder for elements with empty children', function () {
4551
this.el.innerHTML = '<p><br></p><div class="empty"></div>';
4652
var editor = this.newMediumEditor('.editor');

0 commit comments

Comments
 (0)