Skip to content

Commit

Permalink
Mobile - Edit post test - Update beforeAll call
Browse files Browse the repository at this point in the history
  • Loading branch information
geriux committed Apr 8, 2022
1 parent 48067b5 commit 7c6f140
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/edit-post/src/test/editor.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ const unsupportedBlock = `
jest.useFakeTimers( 'legacy' );

describe( 'Editor', () => {
beforeAll( registerCoreBlocks );
beforeAll( () => {

This comment has been minimized.

Copy link
@hypest

hypest Apr 15, 2022

Contributor

👋 @geriux , for (my 😛) learning purposes and not urgent at all, can you describe the need for this change? Was there some problem before that this fixes? Thanks!

registerCoreBlocks();
} );

it( 'detects unsupported block and sends hasUnsupportedBlocks true to native', () => {
RNReactNativeGutenbergBridge.editorDidMount = jest.fn();
Expand Down

0 comments on commit 7c6f140

Please sign in to comment.