2015-12-05 07:59:22 +01:00
|
|
|
describe('AttachmentView', function() {
|
|
|
|
|
|
|
|
it('should display an error for an unsupported type', function() {
|
2015-12-22 02:40:31 +01:00
|
|
|
var attachment = { contentType: 'html/text' };
|
2015-12-05 07:59:22 +01:00
|
|
|
var view = new Whisper.AttachmentView({model: attachment}).render();
|
|
|
|
assert.match(view.$el.text(), /Sorry, your attachment has a type, html, that is not currently supported./);
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|