Skip to content

Commit

Permalink
change(filter): test now uses dummy accordionConfig without tie to re…
Browse files Browse the repository at this point in the history
…al accordion config
  • Loading branch information
ichim-david committed Aug 16, 2023
1 parent 8517248 commit 90ce56e
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { render, fireEvent } from '@testing-library/react';
import React from 'react';
import AccordionFilter from './AccordionFilter';
import config from '@plone/volto/registry';
import '@testing-library/jest-dom/extend-expect';

config.blocks.blocksConfig.accordion = {
...config.blocks.blocksConfig.accordion,
const accordionConfig = {
defaults: {
theme: 'defaultTheme',
},
Expand All @@ -25,7 +23,6 @@ config.blocks.blocksConfig.accordion = {

const handleFilteredValueChange = jest.fn();
let filterValue = '';
const accordionConfig = config.blocks.blocksConfig.accordion;
const data = {
styles: {
theme: 'custom-theme',
Expand Down

0 comments on commit 90ce56e

Please sign in to comment.