diff options
author | Christoph Kluenter <ckluente@thoughtworks.com> | 2016-08-24 15:57:00 +0200 |
---|---|---|
committer | Christoph Kluenter <ckluente@thoughtworks.com> | 2016-08-24 15:57:00 +0200 |
commit | f758f916fe585e55b17f61291de8733e3afe379d (patch) | |
tree | e00590410c5e82b9d3fb5ead8ca65ed77cbad90d /web-ui | |
parent | c99302f6fd2725bdfc71e49319c1c8c145a151ab (diff) | |
parent | 0cc753ce7b525b9b940818cda831750a72131938 (diff) |
Merge branch '5mb_attachment'
Diffstat (limited to 'web-ui')
-rw-r--r-- | web-ui/app/js/mail_view/ui/attachment_list.js | 2 | ||||
-rw-r--r-- | web-ui/test/spec/mail_view/ui/attachment_list.spec.js | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/web-ui/app/js/mail_view/ui/attachment_list.js b/web-ui/app/js/mail_view/ui/attachment_list.js index fc4c0544..4ef64960 100644 --- a/web-ui/app/js/mail_view/ui/attachment_list.js +++ b/web-ui/app/js/mail_view/ui/attachment_list.js @@ -42,7 +42,7 @@ define( }); var ONE_MEGABYTE = 1024*1024; - var ATTACHMENT_SIZE_LIMIT = ONE_MEGABYTE; + var ATTACHMENT_SIZE_LIMIT = 5*ONE_MEGABYTE; this.showAttachment = function (ev, data) { this.trigger(document, events.mail.appendAttachment, data); diff --git a/web-ui/test/spec/mail_view/ui/attachment_list.spec.js b/web-ui/test/spec/mail_view/ui/attachment_list.spec.js index c0e2a5ef..2b430c28 100644 --- a/web-ui/test/spec/mail_view/ui/attachment_list.spec.js +++ b/web-ui/test/spec/mail_view/ui/attachment_list.spec.js @@ -106,15 +106,15 @@ describeMixin('mail_view/ui/attachment_list', function () { describe('File size check', function (){ var ONE_MEGABYTE = 1024*1024; - var largeAttachment = {originalFiles: [{size: ONE_MEGABYTE+1}]}; + var largeAttachment = {originalFiles: [{size: 5*ONE_MEGABYTE+1}]}; - it('should reject files larger than 1MB', function () { + it('should reject files larger than 5MB', function () { var uploadAccepted = this.component.performPreUploadCheck(null, largeAttachment); expect(uploadAccepted).toBe(false); }); - it('should accept files less or equal 1MB', function () { - var smallAttachment = {originalFiles: [{size: ONE_MEGABYTE}]}; + it('should accept files less or equal 5MB', function () { + var smallAttachment = {originalFiles: [{size: 5*ONE_MEGABYTE}]}; var uploadAccepted = this.component.performPreUploadCheck(null, smallAttachment); expect(uploadAccepted).toBe(true); |