Commit e24fa69b authored by David Baldwynn's avatar David Baldwynn Committed by lilia
Browse files

Added test case for unsupported type

parent 8251db6a
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./);
});
});
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment