Skip to content

Commit

Permalink
Block Library: Remove unnecessary lodash mock from Buttons tests (#50588
Browse files Browse the repository at this point in the history
)
  • Loading branch information
tyxla authored May 12, 2023
1 parent f6291fc commit 6606da4
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions packages/block-library/src/buttons/test/edit.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,6 @@ import {
import { getBlockTypes, unregisterBlockType } from '@wordpress/blocks';
import { registerCoreBlocks } from '@wordpress/block-library';

// Mock debounce to prevent potentially belated state updates.
jest.mock( 'lodash', () => ( {
...jest.requireActual( 'lodash' ),
debounce: ( fn ) => {
fn.cancel = jest.fn();
return fn;
},
} ) );

const BUTTONS_HTML = `<!-- wp:buttons -->
<div class="wp-block-buttons"><!-- wp:button /--></div>
<!-- /wp:buttons -->`;
Expand Down

0 comments on commit 6606da4

Please sign in to comment.