Rename assert.imageEqualsFile

This commit is contained in:
Raul Ochoa
2016-02-22 16:36:06 +01:00
parent da680ec2a8
commit 495fdaf8ec
14 changed files with 78 additions and 50 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ var assert = module.exports = exports = require('assert');
* @param {function} callback Will call to home with null in case there is no error, otherwise with the error itself
* @see FUZZY in http://www.imagemagick.org/script/command-line-options.php#metric
*/
assert.imageEqualsFile = function(buffer, referenceImageRelativeFilePath, tolerance, callback) {
assert.imageBufferIsSimilarToFile = function(buffer, referenceImageRelativeFilePath, tolerance, callback) {
callback = callback || function(err) { assert.ifError(err); };
var referenceImageFilePath = path.resolve(referenceImageRelativeFilePath);