Skip to content

Commit

Permalink
chore: Add test for extra classNames on MarkupText.
Browse files Browse the repository at this point in the history
  • Loading branch information
pl12133 committed Nov 2, 2020
1 parent 696a586 commit a37c60c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,18 @@ describe('intl', () => {
expect(root.innerHTML).to.equal('<div><div class="markup">FOO!</div></div>');
});

it('should render with a given className', () => {
rndr(
<IntlProvider definition={{ foo: 'FOO!' }}>
<div>
<MarkupText class="testClass" id="foo" />
</div>
</IntlProvider>
);

expect(root.innerHTML).to.equal('<div><div class="testClass markup">FOO!</div></div>');
});

it('should render text with scope', () => {
rndr(
<IntlProvider scope="foo" definition={{ foo: { bar: 'BAR!' } }}>
Expand Down

0 comments on commit a37c60c

Please sign in to comment.