Fix tests rewriting `logo.png`

v1.18.x
Peter Jaszkowiak 8 years ago
parent 44a59ac435
commit d31499a860

@ -65,6 +65,9 @@ image.resizeImage = function (data, callback) {
}
},
function (image, next) {
if (data.write === false) {
return next();
}
image.write(data.target || data.path, next);
}
], function (err) {

@ -57,7 +57,8 @@ module.exports = function (User) {
path: picture.path,
extension: extension,
width: imageDimension,
height: imageDimension
height: imageDimension,
write: false,
}, next);
},
function (next) {

Loading…
Cancel
Save