mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-24 02:18:15 +01:00
Display nicely formatted phone numbers
In conversation headers and as titles for contacts with no name. Updated tests accordingly. // FREEBIE
This commit is contained in:
@@ -123,7 +123,7 @@
|
||||
it('has a title', function() {
|
||||
var convos = new Whisper.ConversationCollection();
|
||||
var convo = convos.add(attributes);
|
||||
assert.equal(convo.getTitle(), convo.id);
|
||||
assert.equal(convo.getTitle(), '+1 808-555-5555');
|
||||
|
||||
convo = convos.add({type: ''});
|
||||
assert.equal(convo.getTitle(), 'Unknown group');
|
||||
@@ -135,7 +135,7 @@
|
||||
it('returns the number', function() {
|
||||
var convos = new Whisper.ConversationCollection();
|
||||
var convo = convos.add(attributes);
|
||||
assert.equal(convo.getNumber(), convo.id);
|
||||
assert.equal(convo.getNumber(), '+1 808-555-5555');
|
||||
|
||||
convo = convos.add({type: ''});
|
||||
assert.equal(convo.getNumber(), '');
|
||||
|
||||
Reference in New Issue
Block a user