   it "spawns new streams but collects values from the latest spawned stream only", ->
     expectStreamEvents(
       -> repeat(30, [1, 2]).take(2).switch (value) ->
-        Bacon.sequentially(20, [value, error(), value])
+        Bacon.sequentially(t(20), [value, error(), value])
       [1, 2, error(), 2])
 
 describe "EventStream.merge", ->

  it "also accepts a field name instead of combinator function", ->
    expectPropertyEvents(
      ->
        left = repeat(20, [[1]]).take(1).toProperty()
        right = repeat(20, [[2]]).take(1).toProperty()
        left.combine(right, ".concat")
      [[1, 2]])

describe "EventStream.throttle", ->
  it "throttles input by given delay, passing-through errors", ->
    expectStreamEvents(
      -> repeat(20, [1, error(), 2]).take(2).throttle(t(70))
      [error(), 2])

describe "EventStream.bufferWithTime", ->
  it "returns events in bursts, passing through errors", ->
    expectStreamEvents(
      -> repeat(20, [error(), 1, 2, 3, 4, 5, 6, 7]).take(7).bufferWithTime(t(70))
      [error(), [1, 2, 3, 4], [5, 6, 7]])

describe "EventStream.bufferWithCount", ->
