Fix avatar test

pull/749/head
lilia 10 years ago
parent e26b9bfbc7
commit 9a4a91b5b5

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

Loading…
Cancel
Save