Add tests for message.getContact

FREEBIE
This commit is contained in:
Blake Griffith 2016-03-09 14:38:36 -06:00 committed by lilia
parent e07e3a53c9
commit 39091fca80

View file

@ -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);