Add tests for message.getContact

FREEBIE
pull/749/head
Blake Griffith 9 years ago committed by lilia
parent e07e3a53c9
commit 39091fca80

@ -41,6 +41,18 @@
assert.notEqual(secondUrl, firstUrl);
});
it('gets outgoing contact', function() {
var messages = new Whisper.MessageCollection();
var message = messages.add(attributes);
message.getContact();
});
it('gets incoming contact', function() {
var messages = new Whisper.MessageCollection();
var message = messages.add({ type: 'incoming' });
message.getContact();
});
it('adds without saving', function() {
var messages = new Whisper.MessageCollection();
var message = messages.add(attributes);

Loading…
Cancel
Save