Sfoglia il codice sorgente

Merge pull request #702 from smiclea/fix-test

Fix failing test
Sergiu Miclea 4 anni fa
parent
commit
f55b06b02f
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      src/components/ui/Lists/FilterList/FilterList.spec.tsx

+ 4 - 0
src/components/ui/Lists/FilterList/FilterList.spec.tsx

@@ -83,6 +83,10 @@ const FilterListWrap = (options?: {
 )
 
 describe('FilterList', () => {
+  beforeAll(() => {
+    window.HTMLElement.prototype.scrollTo = jest.fn()
+  })
+
   it('renders all elements', () => {
     render(FilterListWrap())
     const filterItems = TestUtils.selectAll('MainListFilter__FilterItem')