Skip to content

Commit

Permalink
Fix block unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Mar 5, 2019
1 parent 8b03489 commit 2cfbaf9
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
24 changes: 17 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/block-library/src/test/helpers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
registerBlockType,
} from '@wordpress/blocks';
import { BlockEdit } from '@wordpress/block-editor';
import '@wordpress/editor';

export const blockEditRender = ( name, settings ) => {
if ( ! getBlockType( name ) ) {
Expand Down
3 changes: 3 additions & 0 deletions packages/editor/src/store/test/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ describe( 'selectors', () => {
category: 'common',
title: 'Test Freeform Content Handler',
icon: 'test',
supports: {
className: false,
},
attributes: {
content: {
type: 'string',
Expand Down

0 comments on commit 2cfbaf9

Please sign in to comment.