From 34a4a78d7350a54c3193ad2f65bb7c7f3ec70a7c Mon Sep 17 00:00:00 2001 From: James Nylen Date: Mon, 15 May 2017 15:39:50 -0400 Subject: [PATCH] Add missing trailing commas --- blocks/library/list/index.js | 14 +++++++------- blocks/library/quote/index.js | 8 ++++---- element/test/index.js | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/blocks/library/list/index.js b/blocks/library/list/index.js index a7cd946e11d408..b3ffbf97a3e6f9 100644 --- a/blocks/library/list/index.js +++ b/blocks/library/list/index.js @@ -49,10 +49,10 @@ registerBlock( 'core/list', { transform: ( { content } ) => { return createBlock( 'core/list', { nodeName: 'ul', - values: switchChildrenNodeName( content, 'li' ) + values: switchChildrenNodeName( content, 'li' ), } ); - } - } + }, + }, ], to: [ { @@ -60,11 +60,11 @@ registerBlock( 'core/list', { blocks: [ 'core/text' ], transform: ( { values } ) => { return createBlock( 'core/text', { - content: switchChildrenNodeName( values, 'p' ) + content: switchChildrenNodeName( values, 'p' ), } ); - } - } - ] + }, + }, + ], }, edit( { attributes, setAttributes, focus, setFocus } ) { diff --git a/blocks/library/quote/index.js b/blocks/library/quote/index.js index d90360b731cb99..cf24fa47ef315f 100644 --- a/blocks/library/quote/index.js +++ b/blocks/library/quote/index.js @@ -48,9 +48,9 @@ registerBlock( 'core/quote', { blocks: [ 'core/list' ], transform: ( { values } ) => { return createBlock( 'core/quote', { - value: switchChildrenNodeName( values, 'p' ) + value: switchChildrenNodeName( values, 'p' ), } ); - } + }, }, { type: 'block', @@ -82,9 +82,9 @@ registerBlock( 'core/quote', { : valueElements; return createBlock( 'core/list', { nodeName: 'ul', - values + values, } ); - } + }, }, { type: 'block', diff --git a/element/test/index.js b/element/test/index.js index 7e41bc8e86ad3a..2a65b375a65f81 100644 --- a/element/test/index.js +++ b/element/test/index.js @@ -73,7 +73,7 @@ describe( 'element', () => { it( 'should switch elements', () => { const children = switchChildrenNodeName( [ createElement( 'strong', { align: 'left' }, 'Courgette' ), - createElement( 'strong', {}, 'Concombre' ) + createElement( 'strong', {}, 'Concombre' ), ], 'em' ); expect( children.length ).to.equal( 2 ); expect( children[ 0 ].type ).to.equal( 'em' );