Skip to content

Commit 06ffead

Browse files
committed
Fix Test
1 parent cf5dbdd commit 06ffead

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Tests/CodeEditSourceEditorTests/Controller/TextViewControllerTests.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,8 +469,12 @@ final class TextViewControllerTests: XCTestCase {
469469

470470
controller.configuration.peripherals.showFoldingRibbon = true
471471
XCTAssertTrue(controller.gutterView.showFoldingRibbon)
472+
XCTAssertFalse(controller.gutterView.foldingRibbon.isHidden)
472473
controller.gutterView.updateWidthIfNeeded() // Would be called on a display pass
473-
XCTAssertEqual(controller.gutterView.frame.width, noRibbonWidth + 7.0)
474+
XCTAssertEqual(
475+
controller.gutterView.frame.width,
476+
noRibbonWidth + 7.0 + controller.gutterView.foldingRibbonPadding
477+
)
474478
}
475479

476480
// MARK: - Get Overlapping Lines

0 commit comments

Comments
 (0)