         p = Bacon.constant(1)
         p.awaiting(p.flatMap((x) -> once(x)))
       [true, false], unstable)
+
+describe "EventStream.awaiting(property)", ->
+  describe "works correctly when EventStream emits first", ->
+    expectPropertyEvents(
+      -> series(2, [1, 1]).awaiting(series(3, [2]))
+      [false, true, false, true], semiunstable)
+  describe "works correctly when Property emits first", ->
+    expectPropertyEvents(
+      -> series(3, [1]).awaiting(series(2, [2, 2]))
+      [false, true, false], semiunstable)

  it "toString", ->
    expect(Bacon.never().awaiting(Bacon.never()).toString()).to.equal("Bacon.never().awaiting(Bacon.never())")

describe "Property.awaiting(other)", ->
  describe "works for awaiting self", ->
    expectPropertyEvents(
      ->

# build-dependencies: flatmap
describe "EventStream.awaiting(stream)", ->
  describe "indicates whether s1 has produced output after s2 (or only the former has output so far)", ->
    expectPropertyEvents(
      -> series(2, [1, 1]).awaiting(series(3, [2]))
