@wordpress/core-data
Version:
Access to and manipulation of core WordPress entities.
18 lines (16 loc) • 375 B
JavaScript
/**
* Internal dependencies
*/
import { removeItems } from '../actions';
describe( 'removeItems', () => {
it( 'builds an action object', () => {
const postIds = [ 1, 2, 3 ];
expect( removeItems( 'postType', 'post', postIds ) ).toEqual( {
type: 'REMOVE_ITEMS',
itemIds: postIds,
kind: 'postType',
name: 'post',
invalidateCache: false,
} );
} );
} );