From a9232156ef9ae721b3ed0e8dfe9b4f5a157c4fe0 Mon Sep 17 00:00:00 2001 From: Blade Barringer Date: Fri, 16 Jan 2015 20:17:03 -0600 Subject: [PATCH] Checks to see if user id and username match chat --- test/api.mocha.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/api.mocha.coffee b/test/api.mocha.coffee index 434aadc881..38e7726b77 100644 --- a/test/api.mocha.coffee +++ b/test/api.mocha.coffee @@ -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) ->