Fix test
// FREEBIE
This commit is contained in:
parent
ce51620b2a
commit
239ec8e318
1 changed files with 1 additions and 3 deletions
|
@ -1,9 +1,7 @@
|
||||||
describe('AttachmentView', function() {
|
describe('AttachmentView', function() {
|
||||||
|
|
||||||
it('should display an error for an unsupported type', function() {
|
it('should display an error for an unsupported type', function() {
|
||||||
var attachment = {
|
var attachment = { contentType: 'html/text' };
|
||||||
contentType: 'html/text';
|
|
||||||
}
|
|
||||||
var view = new Whisper.AttachmentView({model: attachment}).render();
|
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./);
|
assert.match(view.$el.text(), /Sorry, your attachment has a type, html, that is not currently supported./);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue