Skip to content

Commit e427bd2

Browse files
review: add test for default implementation page titles
1 parent d39b029 commit e427bd2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Tests/SwiftDocCTests/Rendering/RenderNodeTranslatorTests.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,13 @@ class RenderNodeTranslatorTests: XCTestCase {
646646
"doc://org.swift.docc.example/documentation/FancyProtocol/SomeClass/Equatable-Implementations",
647647
"doc://org.swift.docc.example/documentation/FancyProtocol/SomeClass/FancyProtocol-Implementations",
648648
])
649+
let implReferences = defaultImplementationSection.identifiers.compactMap({ renderNode.references[$0] as? TopicRenderReference })
650+
XCTAssertEqual(implReferences.map({ $0.title }), [
651+
"Comparable Implementations",
652+
"Equatable Implementations",
653+
"FancyProtocol Implementations",
654+
])
655+
649656
}
650657

651658
func testAutomaticTaskGroupTopicsAreSorted() throws {

0 commit comments

Comments
 (0)