This commit is contained in:
Tankred Hase 2013-11-26 19:17:44 +01:00
parent 33d29971b3
commit 3a29d46e7e
1 changed files with 0 additions and 23 deletions

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() {