test(renderer): assert task state styling

This commit is contained in:
Feror 2026-05-31 22:24:57 +02:00
parent 2f64d9cd83
commit ca306ba8bf

View file

@ -40,6 +40,7 @@ final class MarkdownTextStylerRenderingTests: XCTestCase {
XCTAssertTrue(isHidden(storage, at: checkedMarker.location)) XCTAssertTrue(isHidden(storage, at: checkedMarker.location))
XCTAssertFalse(isHidden(storage, at: checkedMarker.location + 2)) XCTAssertFalse(isHidden(storage, at: checkedMarker.location + 2))
XCTAssertNotNil(storage.attribute(.backgroundColor, at: checkedMarker.location + 2, effectiveRange: nil))
XCTAssertTrue(isHidden(storage, at: uncheckedMarker.location)) XCTAssertTrue(isHidden(storage, at: uncheckedMarker.location))
XCTAssertFalse(isHidden(storage, at: uncheckedMarker.location + 2)) XCTAssertFalse(isHidden(storage, at: uncheckedMarker.location + 2))
XCTAssertNotNil(storage.attribute(.strikethroughStyle, at: doneRange.location, effectiveRange: nil)) XCTAssertNotNil(storage.attribute(.strikethroughStyle, at: doneRange.location, effectiveRange: nil))