summaryrefslogtreecommitdiff
path: root/web-ui/test
diff options
context:
space:
mode:
authorVictor Shyba <victor.shyba@gmail.com>2014-12-11 19:27:52 -0300
committerVictor Shyba <victor.shyba@gmail.com>2014-12-11 19:27:52 -0300
commit9787c739b6ecefd3e8ed822435fa7262e9767811 (patch)
tree362f8a6b1043dc40f3ab119cebda75c0341b9014 /web-ui/test
parent8a25a05cf04078a3a7e8a380eea17f94cc7cec93 (diff)
no_signature_information used when leap signature header is none #177
Diffstat (limited to 'web-ui/test')
-rw-r--r--web-ui/test/spec/mail_view/ui/mail_view.spec.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/web-ui/test/spec/mail_view/ui/mail_view.spec.js b/web-ui/test/spec/mail_view/ui/mail_view.spec.js
index 1cc7eff0..bb0c7851 100644
--- a/web-ui/test/spec/mail_view/ui/mail_view.spec.js
+++ b/web-ui/test/spec/mail_view/ui/mail_view.spec.js
@@ -136,6 +136,12 @@ describeComponent('mail_view/ui/mail_view', function () {
expect(this.component.checkSigned(email)).toEqual('not-signed');
});
+ it('assumes that there is no signature info to show', function() {
+ var email = testData;
+ email.security_casing = {imprints: [{state: 'no_signature_information'}]};
+ expect(this.component.checkSigned(email)).toEqual('');
+ });
+
it('shows that mail is encrypted if it is', function() {
spyOn(this.component, 'checkEncrypted').and.returnValue('encrypted');
this.component.displayMail({}, testData);