Przeglądaj źródła

Fix failing test

Sergiu Miclea 4 lat temu
rodzic
commit
aa6f0319a1

+ 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')