Skip to content

Commit

Permalink
Fix display of expected and actual block HTML
Browse files Browse the repository at this point in the history
The variable were in the wrong order, making the message confusing. It
would show the actual HTML as the expected HTML and visa versa.
  • Loading branch information
atimmer committed Jan 25, 2019
1 parent 164a1d3 commit aef6c65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/blocks/src/api/validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -575,8 +575,8 @@ export function isValidBlockContent( blockTypeOrName, attributes, expectedBlockC
'Block validation failed for `%s` (%o).\n\nExpected:\n\n%s\n\nActual:\n\n%s',
blockType.name,
blockType,
actualBlockContent,
expectedBlockContent
expectedBlockContent,
actualBlockContent
);
}

Expand Down

0 comments on commit aef6c65

Please sign in to comment.