mirror of
https://github.com/moparisthebest/mail
synced 2024-11-29 12:22:22 -05:00
fix test
This commit is contained in:
parent
33d29971b3
commit
3a29d46e7e
@ -108,29 +108,6 @@ define(function(require) {
|
|||||||
scope.verifyTo.restore();
|
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() {
|
describe('verifyTo', function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user