Added test case for unsupported type
This commit is contained in:
parent
8251db6ae6
commit
e24fa69b04
1 changed files with 11 additions and 0 deletions
11
test/views/attachment_view.js
Normal file
11
test/views/attachment_view.js
Normal 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./);
|
||||
});
|
||||
|
||||
});
|
Loading…
Reference in a new issue