Skip to content

Commit 9adc947

Browse files
committed
Fix ServiceTests
1 parent c0d4ea0 commit 9adc947

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Core/Tests/ServiceTests/AcceptSuggestionTests.swift

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,8 @@ final class AcceptSuggestionTests: XCTestCase {
7979
tabSize: 1,
8080
indentSize: 1,
8181
usesTabsForIndentation: false
82-
))!
83-
84-
let result3Lines = lines.applying(result3.modifications)
82+
))
8583

86-
XCTAssertEqual(result3Lines, lines, "Deleting the code and accept again does nothing")
87-
XCTAssertEqual(result3.content, result3Lines.joined())
88-
XCTAssertEqual(result3.newCursor, nil)
84+
XCTAssertNil(result3, "Deleting the code and accept again does nothing")
8985
}
9086
}

0 commit comments

Comments
 (0)