From daaeeb51876276909d506c9f1851b83089ff9124 Mon Sep 17 00:00:00 2001 From: Miu Razvan Date: Thu, 23 Nov 2023 00:09:14 +0200 Subject: [PATCH] update --- package.json | 2 +- src/Blocks/EmbedTableauVisualization/View.jsx | 2 +- src/Blocks/EmbedTableauVisualization/View.test.jsx | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index d70b221..a599a39 100644 --- a/package.json +++ b/package.json @@ -75,4 +75,4 @@ "cypress:open": "make cypress-open", "prepare": "husky install" } -} \ No newline at end of file +} diff --git a/src/Blocks/EmbedTableauVisualization/View.jsx b/src/Blocks/EmbedTableauVisualization/View.jsx index ce98f5c..586e0e4 100644 --- a/src/Blocks/EmbedTableauVisualization/View.jsx +++ b/src/Blocks/EmbedTableauVisualization/View.jsx @@ -1,10 +1,10 @@ import React, { useEffect } from 'react'; import { Message } from 'semantic-ui-react'; import { flattenToAppURL } from '@plone/volto/helpers'; -import PrivacyProtection from '@eeacms/volto-embed/PrivacyProtection/PrivacyProtection'; import { connect } from 'react-redux'; import { compose } from 'redux'; import { getContent } from '@plone/volto/actions'; +import PrivacyProtection from '@eeacms/volto-embed/PrivacyProtection/PrivacyProtection'; import { pickMetadata } from '@eeacms/volto-embed/helpers'; import Tableau from '@eeacms/volto-tableau/Tableau/Tableau'; diff --git a/src/Blocks/EmbedTableauVisualization/View.test.jsx b/src/Blocks/EmbedTableauVisualization/View.test.jsx index 06a236e..d82ff74 100644 --- a/src/Blocks/EmbedTableauVisualization/View.test.jsx +++ b/src/Blocks/EmbedTableauVisualization/View.test.jsx @@ -24,6 +24,10 @@ jest.mock( }, ); +jest.mock('@eeacms/volto-embed/helpers', () => ({ + pickMetadata: (data) => data, +})); + const store = mockStore({ intl: { locale: 'en',