Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
FulcrumOne committed Nov 17, 2024
1 parent 3d793ad commit ade11eb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tests/Tests+ViewModel+PopupVerticalStack.swift
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ extension PopupVerticalStackViewModelTests {
viewModel: bottomViewModel,
popups: popups,
updatedPopup: updatedPopup,
expectedValue: (height: 1371, dragHeight: nil)
expectedValue: (height: 1371, dragHeight: 0)
)
}
func test_updatePopup_3() async {
Expand All @@ -128,12 +128,12 @@ extension PopupVerticalStackViewModelTests {
viewModel: bottomViewModel,
popups: popups,
updatedPopup: updatedPopup,
expectedValue: (height: nil, dragHeight: nil)
expectedValue: (height: nil, dragHeight: 0)
)
}
}
private extension PopupVerticalStackViewModelTests {
func appendPopupsAndCheckPopups(viewModel: ViewModel, popups: [AnyPopup], updatedPopup: AnyPopup, expectedValue: (height: CGFloat?, dragHeight: CGFloat?)) async {
func appendPopupsAndCheckPopups(viewModel: ViewModel, popups: [AnyPopup], updatedPopup: AnyPopup, expectedValue: (height: CGFloat?, dragHeight: CGFloat)) async {
await viewModel.updatePopups(popups)
await viewModel.updatePopupAction(updatedPopup)

Expand Down Expand Up @@ -1168,7 +1168,7 @@ extension PopupVerticalStackViewModelTests {
popups: popups,
gestureTranslation: -123,
calculateForIndex: 0,
expectedValueBuilder: { min($0.stackOverlayFactor * 9, $0.maxStackOverlayFactor) }
expectedValueBuilder: { $0.stackOverlayFactor * 9 }
)
}
func test_calculateStackOverlayOpacity_withThreePopupsStacked_whenGestureTranslationIsPositive_last() async {
Expand Down

0 comments on commit ade11eb

Please sign in to comment.