Added test case for unsupported type

This commit is contained in:
David Baldwynn 2015-12-04 22:59:22 -08:00 committed by lilia
parent 8251db6ae6
commit e24fa69b04
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
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./);
});
});