Add tests for message.getContact
FREEBIE
This commit is contained in:
parent
e07e3a53c9
commit
39091fca80
1 changed files with 12 additions and 0 deletions
|
@ -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…
Reference in a new issue