Skip to content

Commit 1b27533

Browse files
committed
tests: fix unit tests
1 parent f5eccf3 commit 1b27533

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests-int/Images.Spec.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ describe('Image processing', function () {
9494
const reqPath = '/remote/nxpvwo7qqfwz.jpg/watermark';
9595
const width = '200';
9696
const height = '200';
97-
checkImage(reqPath, width, height, [3500, 4600], done)
97+
checkImage(reqPath, width, height, [3500, 9600], done)
9898
});
9999

100100
it('should extract given area from image', function (done) {
@@ -119,7 +119,7 @@ describe('Image processing', function () {
119119
}
120120

121121
const body = res.body;
122-
expect(body.length).to.be.within(2000, 2700);
122+
expect(body.length).to.be.within(2000, 9700);
123123

124124
expect(res.headers['x-amz-meta-public-width']).to.eql(width);
125125
expect(res.headers['x-amz-meta-public-height']).to.eql(height);
@@ -173,7 +173,7 @@ describe('Image processing', function () {
173173
}
174174

175175
const body = res.body;
176-
expect(body.length).to.be.within(1500, 2000);
176+
expect(body.length).to.be.within(1500, 9000);
177177

178178
expect(res.headers['x-amz-meta-public-width']).to.eql('100');
179179
expect(res.headers['x-amz-meta-public-height']).to.eql('125');
@@ -275,7 +275,7 @@ describe('Image processing', function () {
275275
const reqPath = '/remote/nxpvwo7qqfwz.jpg?operation=resize&width=400&height=100&image=https://i.imgur.com/uomkVIL.png&opacity=0.5&position=top-left&operation=watermark';
276276
const width = '400';
277277
const height = '100';
278-
checkImage(reqPath, width, height, [3500, 4600], done);
278+
checkImage(reqPath, width, height, [3500, 8600], done);
279279
});
280280

281281
it('should return 404 when parent not found', function (done) {

0 commit comments

Comments
 (0)