From 58761772de592a5a1455792be750e440d72f3b1a Mon Sep 17 00:00:00 2001 From: Miguel Fonseca Date: Fri, 23 Feb 2018 11:58:05 +0000 Subject: [PATCH] Serializer: Remove More-specific tests --- blocks/api/test/serializer.js | 38 ----------------------------------- 1 file changed, 38 deletions(-) diff --git a/blocks/api/test/serializer.js b/blocks/api/test/serializer.js index 439787aef1ac4..4092240f61ae1 100644 --- a/blocks/api/test/serializer.js +++ b/blocks/api/test/serializer.js @@ -24,7 +24,6 @@ import { } from '../registration'; import { createBlock } from '../'; import InnerBlocks from '../../inner-blocks'; -import { settings as moreSettings } from '../../library/more'; describe( 'block serializer', () => { beforeAll( () => { @@ -284,43 +283,6 @@ describe( 'block serializer', () => { } ); describe( 'serializeBlock()', () => { - describe( '"more" block', () => { - beforeEach( () => { - registerBlockType( 'core/more', moreSettings ); - } ); - - // FIXME: These tests aren't relevant anymore, but I kept them in - // the diff to better illustrate the changes. - - it( 'serializes without text', () => { - const block = createBlock( 'core/more', {} ); - - const content = serializeBlock( block ); - - expect( content ).toBe( '\n\n' ); - } ); - - it( 'serializes with text', () => { - const block = createBlock( 'core/more', { - customText: 'Read more!', - } ); - - const content = serializeBlock( block ); - - expect( content ).toBe( '\n\n' ); - } ); - - it( 'serializes with no teaser', () => { - const block = createBlock( 'core/more', { - noTeaser: true, - } ); - - const content = serializeBlock( block ); - - expect( content ).toBe( '\n\n\n' ); - } ); - } ); - it( 'serializes the fallback block without comment delimiters', () => { registerBlockType( 'core/unknown-block', { category: 'common',