diff options
author | Christoph Kluenter <ckluente@thoughtworks.com> | 2016-08-23 17:15:02 +0200 |
---|---|---|
committer | Christoph Kluenter <ckluente@thoughtworks.com> | 2016-08-23 17:15:02 +0200 |
commit | 9308560b5114f2c349558f8e984b105c225aefa7 (patch) | |
tree | 20ee42590189e82c5412ee3c0ef77dde61121170 /web-ui/test/spec/mail_view/ui | |
parent | 94ce2779a01903688b22783fdef3e42e789c1211 (diff) |
accept uploads to up to 5MB
Diffstat (limited to 'web-ui/test/spec/mail_view/ui')
-rw-r--r-- | web-ui/test/spec/mail_view/ui/attachment_list.spec.js | 8 |
1 files changed, 4 insertions, 4 deletions
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); |