Skip to content

Commit

Permalink
Revert "Value function. Remove tests"
Browse files Browse the repository at this point in the history
This reverts commit 4414f7f.
  • Loading branch information
turansky committed Sep 22, 2024
1 parent 5d29ecc commit b51a96c
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/value/src/jsMain/kotlin/com/test/example/AlignF.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package com.test.example

import seskar.js.JsValue

sealed external interface AlignF {
companion object {
@JsValue("TOP")
fun top(): AlignF

@JsValue("LEFT")
fun left(): AlignF

@JsValue("BOTTOM")
fun bottom(): AlignF

@JsValue("RIGHT")
fun right(): AlignF
}
}
13 changes: 13 additions & 0 deletions tests/value/src/jsTest/kotlin/com/test/example/AlignFTest.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.test.example

import kotlin.test.Test

class AlignFTest {
@Test
fun test() {
assertEquals("TOP", AlignF.top())
assertEquals("LEFT", AlignF.left())
assertEquals("BOTTOM", AlignF.bottom())
assertEquals("RIGHT", AlignF.right())
}
}

0 comments on commit b51a96c

Please sign in to comment.