Skip to content

Commit 00cc332

Browse files
committed
Test .touch() behaviour with transform
1 parent 903348f commit 00cc332

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

core/src/test/scala/io/udash/properties/PropertyTest.scala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,9 @@ class PropertyTest extends UdashCoreTest {
337337

338338
origin.set(None, force = true)
339339
counter shouldBe 2
340+
341+
origin.touch()
342+
counter shouldBe 3
340343
}
341344

342345
"fire on streamed value changed or when forced" in {
@@ -359,6 +362,10 @@ class PropertyTest extends UdashCoreTest {
359362

360363
origin.set(None)
361364
counter shouldBe 1
365+
366+
//todo detect forced / touched?
367+
//origin.set(None, force = true)
368+
//counter shouldBe 2
362369
}
363370

364371
"combine with other properties (single properties)" in {

0 commit comments

Comments
 (0)