Skip to content

Commit

Permalink
chore(accordion): fixed missing key warning and cleaned commented cod…
Browse files Browse the repository at this point in the history
…e from tests
  • Loading branch information
ichim-david committed Aug 17, 2023
1 parent 1de8c43 commit 290f391
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
1 change: 1 addition & 0 deletions src/components/manage/Blocks/Accordion/Edit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ const Edit = (props) => {
handleTitleClick={() => setSelectedBlock({})}
data={data}
index={index}
key={uid}
>
<BlocksForm
key={uid}
Expand Down
9 changes: 0 additions & 9 deletions src/components/manage/Blocks/Accordion/View.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,6 @@ describe('View Component', () => {

it('should open accordion content when title is clicked', () => {
utils.accordionBlockHasValue.mockReturnValue(true);
// config.blocks.blocksConfig.accordion = {
// ...config.blocks.blocksConfig.accordion,
// semanticIcon: 'someIcon',
// };
const { container, getByText } = render(
<Provider store={store}>
<MemoryRouter>
Expand Down Expand Up @@ -153,11 +149,6 @@ describe('View Component', () => {
});

it('should open accordion content when Enter key is pressed', () => {
// config.blocks.blocksConfig.accordion = {
// ...config.blocks.blocksConfig.accordion,
// semanticIcon: 'someIcon',
// };

const { container, getByText } = render(
<Provider store={store}>
<MemoryRouter>
Expand Down

0 comments on commit 290f391

Please sign in to comment.