From 67e79ff83010f3c86e062a0e71e0b3962ef48b9a Mon Sep 17 00:00:00 2001 From: cballevre Date: Thu, 21 Nov 2024 18:51:56 +0100 Subject: [PATCH] fix: Remove attributes for useInstanceInfo --- src/components/PushBanner/QuotaBanner.spec.jsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/components/PushBanner/QuotaBanner.spec.jsx b/src/components/PushBanner/QuotaBanner.spec.jsx index eba3b909..f671a9c4 100644 --- a/src/components/PushBanner/QuotaBanner.spec.jsx +++ b/src/components/PushBanner/QuotaBanner.spec.jsx @@ -52,15 +52,13 @@ describe('QuotaBanner', () => { useInstanceInfo.mockReturnValue({ context: { data: { - attributes: { - enable_premium_links: enablePremiumLinks, - manager_url: 'http://mycozy.cloud' - } + enable_premium_links: enablePremiumLinks, + manager_url: 'http://mycozy.cloud' } }, instance: { data: { - attributes: { uuid: hasUuid ? '123' : null } + uuid: hasUuid ? '123' : null } } })