diff --git a/test/models/messages_test.js b/test/models/messages_test.js index f68a2692..c95ee906 100644 --- a/test/models/messages_test.js +++ b/test/models/messages_test.js @@ -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);