Export: Limit attachment filename length, + convo date, + tests (#1439)
* Export: limit attachment names to 30 chars, tests for helper fns Also, reintroduce last contact date in conversation dir name FREEBIE * MessageView tests: Fix failures during blanket coverage run FREEBIE
This commit is contained in:
parent
4009a0119e
commit
cc6dcf67b7
4 changed files with 185 additions and 15 deletions
|
@ -1,15 +1,17 @@
|
|||
describe('MessageView', function() {
|
||||
before(function() {
|
||||
return storage.put('number_id', '+18088888888.1');
|
||||
});
|
||||
var convo, message;
|
||||
|
||||
var convo = ConversationController.createTemporary({id: 'foo'});
|
||||
var message = convo.messageCollection.add({
|
||||
conversationId: convo.id,
|
||||
body: 'hello world',
|
||||
type: 'outgoing',
|
||||
source: '+14158675309',
|
||||
received_at: Date.now()
|
||||
before(function() {
|
||||
convo = ConversationController.createTemporary({id: 'foo'});
|
||||
message = convo.messageCollection.add({
|
||||
conversationId: convo.id,
|
||||
body: 'hello world',
|
||||
type: 'outgoing',
|
||||
source: '+14158675309',
|
||||
received_at: Date.now()
|
||||
});
|
||||
|
||||
return storage.put('number_id', '+18088888888.1');
|
||||
});
|
||||
|
||||
it('should display the message text', function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue