Skip to content

Commit

Permalink
Added a test for an empty style attribute on the RHS of to satisfy
Browse files Browse the repository at this point in the history
  • Loading branch information
sunesimonsen committed Oct 26, 2018
1 parent b96fa32 commit 7f031f3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1857,6 +1857,14 @@ describe('unexpected-dom', function() {
);
});

it('should treat an empty style string no requirements on the style attribute', function() {
return expect(
parseHtml('<div style="color; width: 120px;">hey</div>'),
'to satisfy',
parseHtml('<div style="">hey</div>')
);
});

it('should fail when the RHS has invalid styles', function() {
return expect(
function() {
Expand Down

0 comments on commit 7f031f3

Please sign in to comment.