diff options
Diffstat (limited to 'plugins/base/src/test/kotlin/renderers')
| -rw-r--r-- | plugins/base/src/test/kotlin/renderers/html/NavigationIconTest.kt | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/plugins/base/src/test/kotlin/renderers/html/NavigationIconTest.kt b/plugins/base/src/test/kotlin/renderers/html/NavigationIconTest.kt index a7a7bacf..e83f70d5 100644 --- a/plugins/base/src/test/kotlin/renderers/html/NavigationIconTest.kt +++ b/plugins/base/src/test/kotlin/renderers/html/NavigationIconTest.kt @@ -37,7 +37,7 @@ class NavigationIconTest : BaseAbstractTest() { .filterKeys { it.startsWith("images/nav-icons") } .keys.sorted() - assertEquals(15, navIconAssets.size) + assertEquals(16, navIconAssets.size) assertEquals("images/nav-icons/abstract-class-kotlin.svg", navIconAssets[0]) assertEquals("images/nav-icons/abstract-class.svg", navIconAssets[1]) assertEquals("images/nav-icons/annotation-kotlin.svg", navIconAssets[2]) @@ -53,6 +53,7 @@ class NavigationIconTest : BaseAbstractTest() { assertEquals("images/nav-icons/interface-kotlin.svg", navIconAssets[12]) assertEquals("images/nav-icons/interface.svg", navIconAssets[13]) assertEquals("images/nav-icons/object.svg", navIconAssets[14]) + assertEquals("images/nav-icons/typealias-kotlin.svg", navIconAssets[15]) } } } @@ -100,6 +101,15 @@ class NavigationIconTest : BaseAbstractTest() { } @Test + fun `should add icon styles to kotlin typealias navigation item`() { + assertNavigationIcon( + source = kotlinSource("typealias KotlinTypealias = String"), + expectedIconClass = "typealias-kt", + expectedNavLinkText = "KotlinTypealias" + ) + } + + @Test fun `should add icon styles to kotlin enum navigation item`() { assertNavigationIcon( source = kotlinSource("enum class KotlinEnum {}"), |
