Skip to content

Commit

Permalink
update test --linux -f 🧪 ..
Browse files Browse the repository at this point in the history
  • Loading branch information
3imed-jaberi committed May 27, 2020
1 parent 401987c commit 72304a1
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions test/disk-storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ describe('Disk Storage', () => {

assert.equal(req.file.fieldname, 'small0');
assert.equal(req.file.originalname, 'small0.dat');
assert.equal(req.file.size, 1803);
assert.equal(util.fileSize(req.file.path), 1803);
assert.equal(req.file.size, 1778);
assert.equal(util.fileSize(req.file.path), 1778);

done();
});
Expand Down Expand Up @@ -116,8 +116,8 @@ describe('Disk Storage', () => {

assert.equal(req.files.tiny0[0].fieldname, 'tiny0');
assert.equal(req.files.tiny0[0].originalname, 'tiny0.dat');
assert.equal(req.files.tiny0[0].size, 128);
assert.equal(util.fileSize(req.files.tiny0[0].path), 128);
assert.equal(req.files.tiny0[0].size, 122);
assert.equal(util.fileSize(req.files.tiny0[0].path), 122);

assert.equal(req.files.tiny1[0].fieldname, 'tiny1');
assert.equal(req.files.tiny1[0].originalname, 'tiny1.dat');
Expand All @@ -126,18 +126,18 @@ describe('Disk Storage', () => {

assert.equal(req.files.small0[0].fieldname, 'small0');
assert.equal(req.files.small0[0].originalname, 'small0.dat');
assert.equal(req.files.small0[0].size, 1803);
assert.equal(util.fileSize(req.files.small0[0].path), 1803);
assert.equal(req.files.small0[0].size, 1778);
assert.equal(util.fileSize(req.files.small0[0].path), 1778);

assert.equal(req.files.small1[0].fieldname, 'small1');
assert.equal(req.files.small1[0].originalname, 'small1.dat');
assert.equal(req.files.small1[0].size, 329);
assert.equal(util.fileSize(req.files.small1[0].path), 329);
assert.equal(req.files.small1[0].size, 315);
assert.equal(util.fileSize(req.files.small1[0].path), 315);

assert.equal(req.files.medium[0].fieldname, 'medium');
assert.equal(req.files.medium[0].originalname, 'medium.dat');
assert.equal(req.files.medium[0].size, 13386);
assert.equal(util.fileSize(req.files.medium[0].path), 13386);
assert.equal(req.files.medium[0].size, 13196);
assert.equal(util.fileSize(req.files.medium[0].path), 13196);

assert.equal(req.files.large[0].fieldname, 'large');
assert.equal(req.files.large[0].originalname, 'large.jpg');
Expand Down

0 comments on commit 72304a1

Please sign in to comment.