Skip to content

Commit

Permalink
Fix unit tests after removing the span
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Jun 4, 2018
1 parent 52c75a5 commit 2054d34
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions editor/store/test/effects.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ describe( 'effects', () => {
expect( dispatch ).toHaveBeenCalledTimes( 1 );
expect( dispatch ).toHaveBeenCalledWith( expect.objectContaining( {
notice: {
content: <p><span>Post published!</span> <a>View post</a></p>, // eslint-disable-line jsx-a11y/anchor-is-valid
content: <p>Post published!{ ' ' }<a>View post</a></p>, // eslint-disable-line jsx-a11y/anchor-is-valid
id: 'SAVE_POST_NOTICE_ID',
isDismissible: true,
status: 'success',
Expand All @@ -325,7 +325,7 @@ describe( 'effects', () => {
expect( dispatch ).toHaveBeenCalledWith( expect.objectContaining( {
notice: {
content: <p>
<span>Post reverted to draft.</span>
Post reverted to draft.
{ ' ' }
{ false }
</p>,
Expand All @@ -350,7 +350,7 @@ describe( 'effects', () => {
expect( dispatch ).toHaveBeenCalledTimes( 1 );
expect( dispatch ).toHaveBeenCalledWith( expect.objectContaining( {
notice: {
content: <p><span>Post updated!</span>{ ' ' }<a>{ 'View post' }</a></p>, // eslint-disable-line jsx-a11y/anchor-is-valid
content: <p>Post updated!{ ' ' }<a>{ 'View post' }</a></p>, // eslint-disable-line jsx-a11y/anchor-is-valid
id: 'SAVE_POST_NOTICE_ID',
isDismissible: true,
status: 'success',
Expand Down

0 comments on commit 2054d34

Please sign in to comment.