Skip to content

Commit

Permalink
✅ fixed test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
poison committed Oct 1, 2024
1 parent e06cd3d commit 9608ab6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/resizeAndAutoOrientFromBuffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = function (_, dir, finish, gm, imageMagick) {

var buf = fs.readFileSync(original);

var m = gm(buf, 'resizefrombuffer.jpg')
var m = gm(buf)
.options({imageMagick})
.autoOrient()
.resize('20%')
Expand Down
2 changes: 1 addition & 1 deletion test/resizeBuffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = function (_, dir, finish, gm, imageMagick) {

var args = m.args();
assert.equal('convert', args[0]);
assert.equal('-', args[1]);
assert.equal('jpg:-', args[1]);
assert.equal('-resize', args[2]);
if (m._options.imageMagick) {
assert.equal('48%', args[3]);
Expand Down

0 comments on commit 9608ab6

Please sign in to comment.