Skip to content

Commit b1585f5

Browse files
Fixing compilation of web and tests
1 parent c115b90 commit b1585f5

2 files changed

Lines changed: 3 additions & 11 deletions

File tree

writeopia_ui/src/commonTest/kotlin/io/writeopia/ui/modifiers/StepsModifierTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class StepsModifierTest {
7070
// Code Block Tests
7171

7272
@Test
73-
fun `single code block should have position 2 (single)`() {
73+
fun `single code block should have position 2 - single`() {
7474
val input = listOf(
7575
StoryStep(type = StoryTypes.CODE_BLOCK.type, text = "code line")
7676
).mapIndexed { index, step ->
Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
package io.writeopia.ui.utils
22

3-
import kotlin.js.Date
3+
actual fun getCurrentDateFormatted(): String = ""
44

5-
actual fun getCurrentDateFormatted(): String {
6-
val now = Date()
7-
return now.toLocaleDateString()
8-
}
9-
10-
actual fun getCurrentDateTimeFormatted(): String {
11-
val now = Date()
12-
return "${now.toLocaleDateString()} ${now.toLocaleTimeString()}"
13-
}
5+
actual fun getCurrentDateTimeFormatted(): String = ""

0 commit comments

Comments
 (0)