summaryrefslogtreecommitdiff
path: root/web-ui/test
diff options
context:
space:
mode:
authorChristoph Kluenter <ckluente@thoughtworks.com>2016-08-24 15:57:00 +0200
committerChristoph Kluenter <ckluente@thoughtworks.com>2016-08-24 15:57:00 +0200
commitf758f916fe585e55b17f61291de8733e3afe379d (patch)
treee00590410c5e82b9d3fb5ead8ca65ed77cbad90d /web-ui/test
parentc99302f6fd2725bdfc71e49319c1c8c145a151ab (diff)
parent0cc753ce7b525b9b940818cda831750a72131938 (diff)
Merge branch '5mb_attachment'
Diffstat (limited to 'web-ui/test')
-rw-r--r--web-ui/test/spec/mail_view/ui/attachment_list.spec.js8
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);