From c7aee325bde5e9a74e4b6f7ff2b00685381cec4a Mon Sep 17 00:00:00 2001 From: fragphace Date: Wed, 2 Jul 2014 10:23:28 +0200 Subject: [PATCH] #297 Update README --- README.md | 7 +++++-- test/utils.js | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6fbaa6a..849963a 100644 --- a/README.md +++ b/README.md @@ -502,7 +502,7 @@ Currently `gm.compare` only accepts file paths. gm.compare(path1, path2 [, options], callback) ```js -gm.compare('/path/to/image1.jpg', '/path/to/another.png', function (err, isEqual, equality, raw) { +gm.compare('/path/to/image1.jpg', '/path/to/another.png', function (err, isEqual, equality, raw, path1, path2) { if (err) return handle(err); // if the images were considered equal, `isEqual` will be true, otherwise, false. @@ -512,7 +512,10 @@ gm.compare('/path/to/image1.jpg', '/path/to/another.png', function (err, isEqual console.log('Actual equality: %d', equality); // inspect the raw output - console.log(raw) + console.log(raw); + + // print file paths + console.log(path1, path2); }) ``` diff --git a/test/utils.js b/test/utils.js index d5ce8ca..64d6f0f 100644 --- a/test/utils.js +++ b/test/utils.js @@ -4,6 +4,7 @@ var assert = require('assert') module.exports = function (_, dir, finish, gm) { assert.equal('function', typeof gm.utils.escape); + assert.equal('function', typeof gm.utils.unescape); finish(); }