Skip to content

Commit

Permalink
Fix end2end tests and linting
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Jul 29, 2020
1 parent 144fc25 commit 8053ebc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions packages/components/src/dashicon/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

function Dashicon( { icon, size = 20, className, ...extraProps } ) {
const iconClass = [ 'dashicon', 'dashicons', 'dashicons-' + icon, className ]
const iconClass = [
'dashicon',
'dashicons',
'dashicons-' + icon,
className,
]
.filter( Boolean )
.join( ' ' );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async function selectFirstBlock() {
}

describe( 'Correctly Renders Block Icons on Inserter and Inspector', () => {
const dashIconRegex = /<svg.*?class=".*?dashicons-cart.*?">.*?<\/svg>/;
const dashIconRegex = /<span.*?class=".*?dashicons-cart.*?">.*?<\/span>/;
const circleString =
'<circle cx="10" cy="10" r="10" fill="red" stroke="blue" stroke-width="10"></circle>';
const svgIcon = new RegExp(
Expand Down

0 comments on commit 8053ebc

Please sign in to comment.