From ca306ba8bfd9b73b554283bb87ada6adc2e87fd4 Mon Sep 17 00:00:00 2001 From: Feror Date: Sun, 31 May 2026 22:24:57 +0200 Subject: [PATCH] test(renderer): assert task state styling --- Tests/SaplingEditorTests/MarkdownTextStylerRenderingTests.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Tests/SaplingEditorTests/MarkdownTextStylerRenderingTests.swift b/Tests/SaplingEditorTests/MarkdownTextStylerRenderingTests.swift index 21f6e36..80acbca 100644 --- a/Tests/SaplingEditorTests/MarkdownTextStylerRenderingTests.swift +++ b/Tests/SaplingEditorTests/MarkdownTextStylerRenderingTests.swift @@ -40,6 +40,7 @@ final class MarkdownTextStylerRenderingTests: XCTestCase { XCTAssertTrue(isHidden(storage, at: checkedMarker.location)) XCTAssertFalse(isHidden(storage, at: checkedMarker.location + 2)) + XCTAssertNotNil(storage.attribute(.backgroundColor, at: checkedMarker.location + 2, effectiveRange: nil)) XCTAssertTrue(isHidden(storage, at: uncheckedMarker.location)) XCTAssertFalse(isHidden(storage, at: uncheckedMarker.location + 2)) XCTAssertNotNil(storage.attribute(.strikethroughStyle, at: doneRange.location, effectiveRange: nil))