Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ad7d882

Browse files
committed
tasks: handle image server request width & height specs
1 parent 920a333 commit ad7d882

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/image/assets/get_image_request_options.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ module.exports = function getRequestOpts(specs) {
2323
scale: specs.scale || DEFAULT_SCALE
2424
};
2525

26+
if(specs.width) body.width = specs.width;
27+
if(specs.height) body.height = specs.height;
28+
2629
return {
2730
method: 'POST',
2831
url: constants.testContainerUrl,

0 commit comments

Comments
 (0)