Skip to content

Commit

Permalink
Tests: Fix toBePositionedPopover matcher message function (WordPres…
Browse files Browse the repository at this point in the history
…s#46239)

* Tests: Fix toBePositionedPopover matcher message function

* Add spacing

Co-authored-by: George Mamadashvili <[email protected]>

Co-authored-by: George Mamadashvili <[email protected]>
  • Loading branch information
2 people authored and mpkelly committed Dec 7, 2022
1 parent 48249f2 commit e004710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/config/matchers/to-be-positioned-popover.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function toBePositionedPopover( element ) {
const pass = element.style.top !== '' && element.style.left !== '';
return {
pass,
message: `Received element is ${ pass ? '' : 'not ' } positioned`,
message: () => `Received element is ${ pass ? '' : 'not ' }positioned`,
};
}

Expand Down

0 comments on commit e004710

Please sign in to comment.