Skip to content

Commit

Permalink
Block Editor: Refactor MediaPlaceholder tests to @testing-library/rea…
Browse files Browse the repository at this point in the history
…ct (#43991)
  • Loading branch information
tyxla authored Sep 9, 2022
1 parent 61456e8 commit b103a47
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* External dependencies
*/
import { mount } from 'enzyme';
import { render } from '@testing-library/react';

/**
* Internal dependencies
Expand All @@ -13,6 +13,6 @@ jest.mock( '@wordpress/data/src/components/use-select', () => () => ( {} ) );

describe( 'MediaPlaceholder', () => {
it( 'renders successfully when allowedTypes property is not specified', () => {
expect( () => mount( <MediaPlaceholder /> ) ).not.toThrow();
expect( () => render( <MediaPlaceholder multiple /> ) ).not.toThrow();
} );
} );

0 comments on commit b103a47

Please sign in to comment.