1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-25 18:32:20 -05:00
This commit is contained in:
Tankred Hase 2013-11-26 19:17:44 +01:00
parent 33d29971b3
commit 3a29d46e7e

View File

@ -108,29 +108,6 @@ define(function(require) {
scope.verifyTo.restore();
});
it('should prevent markup injection', function() {
var address = 'pity@dafool',
subject = 'Ermahgerd!',
body = '<div>markup</div><div>moreMarkup<div>',
re = {
from: [{
address: address
}],
subject: subject,
sentDate: new Date(),
body: body,
html: false
};
sinon.stub(scope, 'verifyTo');
scope.state.writer.write(re);
expect(scope.body).to.contain('<br>> markupmoreMarkup');
scope.verifyTo.restore();
});
});
describe('verifyTo', function() {