@wordpress/block-library
Version:
Block library for the WordPress editor.
28 lines (24 loc) • 542 B
JavaScript
/**
* External dependencies
*/
import { render } from 'test/helpers';
/**
* Internal dependencies
*/
import Paragraph from '../edit';
const getTestComponentWithContent = ( content ) => {
return render(
<Paragraph
attributes={ { content } }
setAttributes={ jest.fn() }
onReplace={ jest.fn() }
insertBlocksAfter={ jest.fn() }
/>
);
};
describe( 'Paragraph block', () => {
it( 'renders without crashing', () => {
const screen = getTestComponentWithContent( '' );
expect( screen.container ).toBeTruthy();
} );
} );