Skip to content
This repository has been archived by the owner on Sep 23, 2020. It is now read-only.

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
wmakeev committed Nov 27, 2014
1 parent e636119 commit d5a8e75
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion spec/Mediator.spec.coffee
Expand Up @@ -429,7 +429,7 @@ describe "Mediator", ->
@paul.emit "channel"
(expect cb.callCount).to.equal 2

it "publishes/send the reference of data objects by default", (done) ->
it "publishes the reference of data objects by default", (done) ->

obj = {a:true,b:"x",c:{ y:0 }}

Expand All @@ -439,6 +439,16 @@ describe "Mediator", ->
done()

@paul.emit "obj", obj

it "send the reference of data objects by default", (done) ->

obj = {a:true,b:"x",c:{ y:0 }}

@paul.on "obj", (data) ->
(expect data).to.equal obj
(expect data is obj).to.be.true
done()

@paul.send "obj", obj

it "does not publish/send data to other topics", ->
Expand Down

0 comments on commit d5a8e75

Please sign in to comment.