Skip to content

Commit

Permalink
Remove test for edit function
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Nov 8, 2018
1 parent ca71e2f commit 88740cd
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions packages/rich-text/src/test/register-format-type.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,24 +94,6 @@ describe( 'registerFormatType', () => {
expect( duplicateFormat ).toBeUndefined();
} );

it( 'should error on undefined edit property', () => {
const format = registerFormatType( 'plugin/test', {
...validSettings,
edit: undefined,
} );
expect( console ).toHaveErroredWith( 'The "edit" property must be specified and must be a valid function.' );
expect( format ).toBeUndefined();
} );

it( 'should reject formats with an invalid edit function', () => {
const format = registerFormatType( validName, {
...validSettings,
edit: 'not-a-function',
} );
expect( console ).toHaveErroredWith( 'The "edit" property must be specified and must be a valid function.' );
expect( format ).toBeUndefined();
} );

it( 'should reject formats without tag name', () => {
const settings = { ...validSettings };
delete settings.tagName;
Expand Down

0 comments on commit 88740cd

Please sign in to comment.