Fix avatar test

This commit is contained in:
lilia 2015-06-19 12:03:37 -07:00
parent e26b9bfbc7
commit 9a4a91b5b5

View file

@ -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() {