@wordpress/editor
Version:
Enhanced block editor for WordPress posts.
17 lines (15 loc) • 414 B
JavaScript
/**
* Internal dependencies
*/
import { togglePostTitleSelection } from '../actions';
describe( 'actions native', () => {
describe( 'togglePostTitleSelection', () => {
it( 'should return the TOGGLE_POST_TITLE_SELECTION action', () => {
const result = togglePostTitleSelection( true );
expect( result ).toEqual( {
type: 'TOGGLE_POST_TITLE_SELECTION',
isSelected: true,
} );
} );
} );
} );