Skip to content

Commit

Permalink
ie trims redundant px
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchen committed Aug 3, 2016
1 parent 3d9d658 commit 35d9d7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/modules/clipboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ describe('Clipboard', function() {
});

it('embeds', function() {
let delta = this.clipboard.convert('<div>01<img src="/assets/favicon.png" height="200px" width="300px">34</div>');
let delta = this.clipboard.convert('<div>01<img src="/assets/favicon.png" height="200" width="300">34</div>');
let expected = new Delta()
.insert('01')
.insert({ image: '/assets/favicon.png' }, { height: '200px', width: '300px' })
.insert({ image: '/assets/favicon.png' }, { height: '200', width: '300' })
.insert('34');
expect(delta).toEqual(expected);
});
Expand Down

0 comments on commit 35d9d7b

Please sign in to comment.