Skip to content

Commit cc82b8f

Browse files
thecoolwinterlukepistrol
authored andcommitted
Fix split view test
1 parent 27f90f0 commit cc82b8f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)