Skip to content

Commit

Permalink
chore(tests): fix breaking test with latest NTL version
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Release 2.0.0 to support the latest version of Native Testing Library
  • Loading branch information
bcarroll22 committed May 16, 2019
1 parent c114b52 commit 828ceff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/__tests__/to-have-text-content.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ describe('.toHaveTextContent', () => {
});

test('normalizes whitespace by default', () => {
const { container } = render(
<Text>
const { getByTestId } = render(
<Text testID="text">
{`
Step
1
Expand All @@ -34,7 +34,7 @@ describe('.toHaveTextContent', () => {
</Text>,
);

expect(container).toHaveTextContent('Step 1 of 4');
expect(getByTestId('text')).toHaveTextContent('Step 1 of 4');
});

test('can handle multiple levels', () => {
Expand Down

0 comments on commit 828ceff

Please sign in to comment.