Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchen committed Mar 30, 2016
1 parent c5475c1 commit ef779de
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/unit/blots/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ describe('Block', function() {
expect(scroll.domNode).toEqualHTML('<h1 id="helloworld">HelloWorld!</h1>');
});

it('join empty lines', function() {
let scroll = this.initialize(Scroll, '<h1><br></h1><p><br></p>');
scroll.deleteAt(1, 1);
expect(scroll.domNode).toEqualHTML('<h1><br></h1>');
});

it('format empty', function() {
let scroll = this.initialize(Scroll, '<p><br></p>');
scroll.formatAt(0, 1, 'header', 1);
Expand Down

0 comments on commit ef779de

Please sign in to comment.