 
   it "should create EventStream from on/off event", ->
     values = []
-    take(1, Bacon.fromEventTarget(mockSource, "test")).onValue (value) ->
+    take(1, Bacon.fromEvent(mockSource, "test")).onValue (value) ->
       values.push(value)
 
   it "toString", ->
-    expect(Bacon.fromEventTarget(mockSource, "click").toString()).to.equal("Bacon.fromEvent({on:function,off:function},click)")
+    expect(Bacon.fromEvent(mockSource, "click").toString()).to.equal("Bacon.fromEvent({on:function,off:function},click)")
 
 

        emitter = new EventEmitter()
        emitter.on "newListener", ->
          soon -> emitter.emit "data", "x"
        take 1, Bacon.fromEventTarget(emitter, "data")
      ["x"]
    )


    emitter.addListener(event, handler)
  removeEventListener: (event, handler) -> emitter.removeListener(event, handler)

describe "Bacon.fromEventTarget", ->
  it "is legacy name for Bacon.fromEvent", ->
    expect(Bacon.fromEvent).to.equal(Bacon.fromEventTarget)

describe "Bacon.fromEvent", ->
  soon = (f) -> setTimeout f, 0
  describe "should create EventStream from DOM object", ->
    expectStreamEvents(
