From 7dc35d8552dc4b58e055b3b671227b785fa65ac7 Mon Sep 17 00:00:00 2001 From: JF-Cozy Date: Tue, 5 Nov 2024 10:17:41 +0100 Subject: [PATCH] test: Remove attributes according to change in cozy-client see https://github.com/cozy/cozy-client/pull/1507 --- .../components/hooks/useAppLinkWithStoreFallback.spec.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/cozy-harvest-lib/src/components/hooks/useAppLinkWithStoreFallback.spec.js b/packages/cozy-harvest-lib/src/components/hooks/useAppLinkWithStoreFallback.spec.js index 7cc5b3e0f5..20dba5cf40 100644 --- a/packages/cozy-harvest-lib/src/components/hooks/useAppLinkWithStoreFallback.spec.js +++ b/packages/cozy-harvest-lib/src/components/hooks/useAppLinkWithStoreFallback.spec.js @@ -30,9 +30,7 @@ describe('useAppLinkWithStoreFallback', () => { mockClient.query.mockResolvedValue({ data: [ { - attributes: { - slug: testAppSlug - }, + slug: testAppSlug, links: { related: 'http://testapp.cozy.io' } } ] @@ -52,9 +50,7 @@ describe('useAppLinkWithStoreFallback', () => { mockClient.query.mockResolvedValue({ data: [ { - attributes: { - slug: 'store' - }, + slug: 'store', links: { related: 'http://store.cozy.io' } } ]