mirror of https://gitgud.io/fatchan/gm
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
494 B
27 lines
494 B
|
|
var assert = require('assert')
|
|
|
|
module.exports = function (gm, dir, finish, GM) {
|
|
|
|
if (!GM.integration)
|
|
return finish();
|
|
|
|
gm
|
|
.avatar(__dirname + '/fixtures/avatar.png', function(err)
|
|
{
|
|
if(err)
|
|
{
|
|
finish(err);
|
|
}
|
|
else
|
|
{
|
|
gm.compare(__dirname + '/fixtures/avatar.png', __dirname + '/fixtures/avatar-compare.png',
|
|
function (err, isEqual)
|
|
{
|
|
if (err) return handle(err);
|
|
assert(isEqual);
|
|
finish();
|
|
})
|
|
}
|
|
});
|
|
}
|
|
|