Skip to content

Commit

Permalink
Markdown block: removes a React warning in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferdev committed Jul 16, 2018
1 parent 24b56ae commit c9be670
Showing 1 changed file with 16 additions and 18 deletions.
34 changes: 16 additions & 18 deletions modules/markdown/assets/test/test-jetpack-markdown-block.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ require( '../js/jetpack-markdown-block' );
const JetpackMarkdownBlockEditor = require( '../js/jetpack-markdown-block-editor' );
const JetpackMarkdownBlockSave = require( '../js/jetpack-markdown-block-save' );

describe( '', () => {
describe( 'JetpackMarkdownBlock', () => {
it( 'registers the markdown block', () => {
expect( registerBlockTypeSpy ).to.have.been.calledWith(
'jetpack/markdown-block',
Expand All @@ -51,23 +51,21 @@ describe( '', () => {
viewBox: '0 0 208 128',
stroke: 'currentColor'
},
[
createElement(
'rect', {
width: '198',
height: '118',
x: '5',
y: '5',
ry: '10',
'stroke-width': '10',
fill: 'none'
} ),
createElement(
'path', {
d: 'M30 98v-68h20l20 25 20-25h20v68h-20v-39l-20 25-20-25v39zM155 98l-30-33h20v-35h20v35h20z'
}
)
]
createElement(
'rect', {
width: '198',
height: '118',
x: '5',
y: '5',
ry: '10',
'stroke-width': '10',
fill: 'none'
} ),
createElement(
'path', {
d: 'M30 98v-68h20l20 25 20-25h20v68h-20v-39l-20 25-20-25v39zM155 98l-30-33h20v-35h20v35h20z'
}
)
),
category: 'formatting',
attributes: {
Expand Down

0 comments on commit c9be670

Please sign in to comment.