Skip to content

Commit

Permalink
Merge pull request #401 from preactjs/fix-test-assertion
Browse files Browse the repository at this point in the history
chore: fix test assertion
  • Loading branch information
marvinhagemeister authored Oct 20, 2024
2 parents eafe5a3 + b25154a commit 77595a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/render.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ describe('render', () => {
);
}
let rendered = render(
<div class="foo">
<div>
x<a>a</a>
<b>b</b>c{children}d
</div>
);

expect(rendered).not.to.contain(/\s/);
expect(rendered).not.to.match(/\s/);
});

it('should not indent when attributes contain newlines', () => {
Expand Down

0 comments on commit 77595a1

Please sign in to comment.