From 9a4a91b5b58f19e8bfe391e1ae18578f7571e5e5 Mon Sep 17 00:00:00 2001 From: lilia Date: Fri, 19 Jun 2015 12:03:37 -0700 Subject: [PATCH] Fix avatar test --- test/models/conversations_test.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/models/conversations_test.js b/test/models/conversations_test.js index 32c9db0f..8622aaf5 100644 --- a/test/models/conversations_test.js +++ b/test/models/conversations_test.js @@ -152,9 +152,11 @@ assert.equal(convo.getNumber(), ''); }); - it('has an avatar URL', function() { + it('has an avatar', function() { var convo = new Whisper.ConversationCollection().add(attributes); - assert.equal(convo.getAvatarUrl(), '/images/default.png'); + var avatar = convo.getAvatar(); + assert.property(avatar, 'content'); + assert.property(avatar, 'color'); }); it('revokes the avatar URL', function() {