Skip to content

Commit

Permalink
KTOR-7586 Fix MimesTest doesn't compile on JS target (#4438)
Browse files Browse the repository at this point in the history
  • Loading branch information
osipxd authored and e5l committed Nov 19, 2024
1 parent 75e9683 commit d860c68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ktor-http/common/test/io/ktor/tests/http/MimesTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import kotlin.test.*
class MimesTest {

@Test
fun `test mime with multiple extensions`() {
fun testMimeWithMultipleExtensions() {
val textPlain = "text/plain".toContentType()
val textMime = "text" to textPlain
val txtMime = "txt" to textPlain
Expand All @@ -19,14 +19,14 @@ class MimesTest {
}

@Test
fun `test mime with single extension`() {
fun testMimeWithSingleExtension() {
val acad = "application/acad".toContentType()
val dwgMime = "dwg" to acad
assertTrue(mimes.contains(dwgMime))
}

@Test
fun `test mimes size matches preallocated list size`() {
fun testMimesSizeMatchesPreallocatedListSize() {
assertEquals(INITIAL_MIMES_LIST_SIZE, mimes.size)
}
}

0 comments on commit d860c68

Please sign in to comment.