mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Add tests for message.getContact
FREEBIE
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user