Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
cornerman committed Nov 20, 2023
1 parent 17f3ff3 commit f732c88
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions reactive/src/test/scala/colibri/ReactiveSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -707,9 +707,9 @@ class ReactiveSpec extends AsyncFlatSpec with Matchers {

{
// only trigger outer Rx if collection size changed
val variable = Var[Seq[Int]](Seq(1,2))
val variable = Var[Seq[Int]](Seq(1, 2))
val sequence: Rx[Seq[Var[Int]]] = variable.sequence
var sequenceTriggered = 0
var sequenceTriggered = 0
sequence.unsafeForeach(_ => sequenceTriggered += 1)

sequenceTriggered shouldBe 1
Expand All @@ -719,13 +719,13 @@ class ReactiveSpec extends AsyncFlatSpec with Matchers {
sequence.now().size shouldBe 2
sequenceTriggered shouldBe 1

variable.set(Seq(3,4))
variable.set(Seq(3, 4))
sequence.now().size shouldBe 2
sequence.now().apply(0).now() shouldBe 3
sequence.now().apply(1).now() shouldBe 4
sequenceTriggered shouldBe 1

variable.set(Seq(3,4,5,6))
variable.set(Seq(3, 4, 5, 6))
sequence.now().size shouldBe 4
sequence.now().apply(0).now() shouldBe 3
sequence.now().apply(1).now() shouldBe 4
Expand Down

0 comments on commit f732c88

Please sign in to comment.