test(renderer): assert task state styling
This commit is contained in:
parent
2f64d9cd83
commit
ca306ba8bf
1 changed files with 1 additions and 0 deletions
|
|
@ -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))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue