You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
357 B
JavaScript
10 lines
357 B
JavaScript
describe('AttachmentView', function() {
|
|
|
|
it('should display an error for an unsupported type', function() {
|
|
var attachment = { contentType: 'html/text' };
|
|
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./);
|
|
});
|
|
|
|
});
|