Skip to content

Commit

Permalink
Components: Refactor TreeGrid RovingTabIndex tests to RTL (#44820)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyxla authored Oct 10, 2022
1 parent c14e431 commit f8503f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/components/src/tree-grid/test/roving-tab-index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* External dependencies
*/
import TestRenderer from 'react-test-renderer';
import { render } from '@testing-library/react';

/**
* Internal dependencies
Expand All @@ -10,12 +10,12 @@ import RovingTabIndex from '../roving-tab-index';

describe( 'RovingTabIndex', () => {
it( 'does not render any elements other than its children', () => {
const renderer = TestRenderer.create(
const { container } = render(
<RovingTabIndex>
<div>child element</div>
</RovingTabIndex>
);

expect( renderer.toJSON() ).toMatchSnapshot();
expect( container.firstChild ).toMatchSnapshot();
} );
} );

0 comments on commit f8503f7

Please sign in to comment.