From d968e38c2de9e10f63e9e483df2f72b253bb3203 Mon Sep 17 00:00:00 2001 From: Sergei Bachinin Date: Wed, 28 Aug 2024 18:45:26 +0700 Subject: [PATCH] Fix test --- tests/navigation.test.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/navigation.test.js b/tests/navigation.test.js index 424fa01..eac9325 100644 --- a/tests/navigation.test.js +++ b/tests/navigation.test.js @@ -262,7 +262,13 @@ test(`returns stub values if getNavigationState is called after elements were re const { wrapper, bracket: br } = init(finished_ucl) wrapper.remove() - expect(br.getNavigationState()).toEqual({ lastRoundIsFullyVisible: false, allRoundsAreVisible: false, baseRoundIndex: 0 }) + expect(br.getNavigationState()).toEqual({ + lastRoundIsFullyVisible: false, + allRoundsAreVisible: false, + baseRoundIndex: 0 , + maxBaseRoundIndex: 4, + visibleRoundsCount: 0 + }) })