From 68fc67f7cd4f279f76d3950627266b48923fbe70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20M=C3=B3rawski?= Date: Tue, 16 Apr 2024 16:24:59 +0200 Subject: [PATCH] test fixes --- tests/unit/OptionsListUtilsTest.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/unit/OptionsListUtilsTest.ts b/tests/unit/OptionsListUtilsTest.ts index af5782b1ca32..75ed7fa9d5b1 100644 --- a/tests/unit/OptionsListUtilsTest.ts +++ b/tests/unit/OptionsListUtilsTest.ts @@ -812,12 +812,14 @@ describe('OptionsListUtils', () => { isSelected: false, }, ], + indexOffset: 3, }, ]; const smallSearchResultList: OptionsListUtils.CategoryTreeSection[] = [ { title: '', shouldShow: true, + indexOffset: 2, data: [ { text: 'Food', @@ -842,6 +844,7 @@ describe('OptionsListUtils', () => { { title: '', shouldShow: true, + indexOffset: 0, data: [], }, ]; @@ -977,6 +980,7 @@ describe('OptionsListUtils', () => { { title: '', shouldShow: false, + indexOffset: 1, data: [ { text: 'Medical', @@ -991,6 +995,7 @@ describe('OptionsListUtils', () => { { title: 'Recent', shouldShow: true, + indexOffset: 1, data: [ { text: 'Restaurant', @@ -1005,6 +1010,7 @@ describe('OptionsListUtils', () => { { title: 'All', shouldShow: true, + indexOffset: 11, data: [ { text: 'Cars', @@ -1101,6 +1107,7 @@ describe('OptionsListUtils', () => { { title: '', shouldShow: true, + indexOffset: 3, data: [ { text: 'Food', @@ -1133,6 +1140,7 @@ describe('OptionsListUtils', () => { { title: '', shouldShow: true, + indexOffset: 0, data: [], }, ]; @@ -1141,6 +1149,7 @@ describe('OptionsListUtils', () => { { title: '', shouldShow: false, + indexOffset: 1, data: [ { text: 'Medical',