Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tonisevener committed Dec 15, 2023
1 parent 8d2ea94 commit 1197206
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ final class WKSourceEditorFormatterTests: XCTestCase {
XCTAssertEqual(refOpeningRange.location, 0, "Incorrect ref formatting")
XCTAssertEqual(refOpeningRange.length, 5, "Incorrect ref formatting")
XCTAssertEqual(refOpeningAttributes[.font] as! UIFont, fonts.baseFont, "Incorrect ref formatting")
XCTAssertEqual(refOpeningAttributes[.foregroundColor] as! UIColor, colors.baseForegroundColor, "Incorrect ref formatting")
XCTAssertEqual(refOpeningAttributes[.foregroundColor] as! UIColor, colors.greenForegroundColor, "Incorrect ref formatting")

// "{{cite web |url=https://en.wikipedia.org |title=English Wikipedia}}"
XCTAssertEqual(templateRange.location, 5, "Incorrect template formatting")
Expand All @@ -630,7 +630,7 @@ final class WKSourceEditorFormatterTests: XCTestCase {
XCTAssertEqual(refClosingRange.location, 72, "Incorrect ref formatting")
XCTAssertEqual(refClosingRange.length, 6, "Incorrect ref formatting")
XCTAssertEqual(refClosingAttributes[.font] as! UIFont, fonts.baseFont, "Incorrect ref formatting")
XCTAssertEqual(refClosingAttributes[.foregroundColor] as! UIColor, colors.baseForegroundColor, "Incorrect ref formatting")
XCTAssertEqual(refClosingAttributes[.foregroundColor] as! UIColor, colors.greenForegroundColor, "Incorrect ref formatting")
}

func testVerticalStartTemplate() {
Expand Down Expand Up @@ -710,7 +710,7 @@ final class WKSourceEditorFormatterTests: XCTestCase {
XCTAssertEqual(refRange.location, 2, "Incorrect ref formatting")
XCTAssertEqual(refRange.length, 6, "Incorrect ref formatting")
XCTAssertEqual(refAttributes[.font] as! UIFont, fonts.baseFont, "Incorrect ref formatting")
XCTAssertEqual(refAttributes[.foregroundColor] as! UIColor, colors.baseForegroundColor, "Incorrect ref formatting")
XCTAssertEqual(refAttributes[.foregroundColor] as! UIColor, colors.greenForegroundColor, "Incorrect ref formatting")
}

func testOpenAndClosingReference() {
Expand Down

0 comments on commit 1197206

Please sign in to comment.