Skip to content

Commit c1b9b15

Browse files
committed
Fix split view test
1 parent 37c7ccc commit c1b9b15

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

CodeEditTests/Features/Documents/DocumentsUnitTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ final class DocumentsUnitTests: XCTestCase {
4646

4747
func testSplitViewControllerStopSnappedWhenWidthIsLowerAppropriateRange() {
4848
// Given
49-
let position = (0..<260).randomElement() ?? .zero
49+
// 242 is the minimum width of the sidebar
50+
let position = (242..<260).randomElement() ?? .zero
5051

5152
// When
5253
let result = splitViewController.splitView(

0 commit comments

Comments
 (0)