Fix tests rewriting logo.png

This commit is contained in:
Peter Jaszkowiak
2017-02-03 18:29:09 -07:00
parent 44a59ac435
commit d31499a860
2 changed files with 5 additions and 1 deletions

View File

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

View File

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