From e004710aed89067821ca85134874be59a707caa2 Mon Sep 17 00:00:00 2001 From: Marin Atanasov <8436925+tyxla@users.noreply.github.com> Date: Thu, 1 Dec 2022 18:09:48 +0200 Subject: [PATCH] Tests: Fix `toBePositionedPopover` matcher message function (#46239) * Tests: Fix toBePositionedPopover matcher message function * Add spacing Co-authored-by: George Mamadashvili Co-authored-by: George Mamadashvili --- test/unit/config/matchers/to-be-positioned-popover.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/config/matchers/to-be-positioned-popover.js b/test/unit/config/matchers/to-be-positioned-popover.js index bb28edce85b76b..f646ff291d2131 100644 --- a/test/unit/config/matchers/to-be-positioned-popover.js +++ b/test/unit/config/matchers/to-be-positioned-popover.js @@ -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`, }; }