Skip to content

Commit

Permalink
Checks to see if user id and username match chat
Browse files Browse the repository at this point in the history
  • Loading branch information
crookedneighbor authored and gisikw committed Mar 27, 2015
1 parent c5de07d commit a923215
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/api.mocha.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@ describe "API", ->
expect(chat.uuid).to.be.ok
expect(chat.contributor).to.be.empty
expect(chat.backer).to.be.empty
expect(chat.user).to.be.ok
expect(chat.uuid).to.be user._id
expect(chat.user).to.be user.profile.name
done()

it "can not like own chat message", (done) ->
Expand Down

0 comments on commit a923215

Please sign in to comment.