Skip to content

Commit cf5dbdd

Browse files
committed
lint:fix
1 parent ea839d6 commit cf5dbdd

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Tests/CodeEditSourceEditorTests/Controller/TextViewControllerTests.swift

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,10 @@ final class TextViewControllerTests: XCTestCase {
208208

209209
// Insert lots of spaces
210210
controller.configuration.behavior.indentOption = .spaces(count: 1000)
211-
controller.textView.replaceCharacters(in: NSRange(location: 0, length: controller.textView.textStorage.length), with: "")
211+
controller.textView.replaceCharacters(
212+
in: NSRange(location: 0, length: controller.textView.textStorage.length),
213+
with: ""
214+
)
212215
controller.textView.insertText("\t", replacementRange: .zero)
213216
XCTAssertEqual(controller.textView.string, String(repeating: " ", count: 1000))
214217
}
@@ -241,7 +244,7 @@ final class TextViewControllerTests: XCTestCase {
241244

242245
controller.scrollView.setFrameSize(NSSize(width: 500, height: 500))
243246
controller.viewDidLoad()
244-
let _ = controller.textView.becomeFirstResponder()
247+
_ = controller.textView.becomeFirstResponder()
245248
controller.configuration.appearance.bracketPairEmphasis = nil
246249
controller.setText("{ Lorem Ipsum {} }")
247250
controller.setCursorPositions([CursorPosition(line: 1, column: 2)]) // After first opening {
@@ -459,12 +462,12 @@ final class TextViewControllerTests: XCTestCase {
459462

460463
func test_foldingRibbonToggle() {
461464
controller.setText("Hello World")
462-
controller.showFoldingRibbon = false
465+
controller.configuration.peripherals.showFoldingRibbon = false
463466
XCTAssertFalse(controller.gutterView.showFoldingRibbon)
464467
controller.gutterView.updateWidthIfNeeded() // Would be called on a display pass
465468
let noRibbonWidth = controller.gutterView.frame.width
466469

467-
controller.showFoldingRibbon = true
470+
controller.configuration.peripherals.showFoldingRibbon = true
468471
XCTAssertTrue(controller.gutterView.showFoldingRibbon)
469472
controller.gutterView.updateWidthIfNeeded() // Would be called on a display pass
470473
XCTAssertEqual(controller.gutterView.frame.width, noRibbonWidth + 7.0)

0 commit comments

Comments
 (0)