From 88740cd021c28102e8beb4eb8366db433e673c67 Mon Sep 17 00:00:00 2001 From: iseulde Date: Thu, 8 Nov 2018 15:10:30 +0100 Subject: [PATCH] Remove test for edit function --- .../rich-text/src/test/register-format-type.js | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/packages/rich-text/src/test/register-format-type.js b/packages/rich-text/src/test/register-format-type.js index cde3c900e8b41c..5fc78630be2bab 100644 --- a/packages/rich-text/src/test/register-format-type.js +++ b/packages/rich-text/src/test/register-format-type.js @@ -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;