Checks to see if user id and username match chat

This commit is contained in:
Blade Barringer 2015-01-16 20:17:03 -06:00 committed by Kevin Gisi
parent c5de07d33e
commit a9232156ef

View file

@ -216,7 +216,8 @@ describe "API", ->
expect(chat.uuid).to.be.ok expect(chat.uuid).to.be.ok
expect(chat.contributor).to.be.empty expect(chat.contributor).to.be.empty
expect(chat.backer).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() done()
it "can not like own chat message", (done) -> it "can not like own chat message", (done) ->