gemini-testing / gemini-testing/looks-same

error when try CreateDiff

Open
#56 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
827
Forks
55
PR merge metrics
No merged PRs in 30d

Description

when I run follow code
const looksSame = require('looks-same');

function diff (){
looksSame.createDiff({
reference: './reference.png',
current:'./current.png',
diff: './diff.png',
highlightColor: '#ff00ff', // color to highlight the differences
strict: false, // strict comparsion
tolerance: 2.5,
antialiasingTolerance: 0,
ignoreAntialiasing: true, // ignore antialising by default
ignoreCaret: true // ignore caret by default
}, (error, {equal}) => {
console.log("func block");
console.log(error.name, error.message);
});}

diff();

get an error:

TypeError: Cannot destructure property `first` of 'undefined' or 'null'.

Could u guys describe me what's going on? Is there issue in my code?

Thank you :)

![image](https://user-images.githubusercontent.com/15101695/58806627-44ecf980-861f-11e9-8666-b66e8d92c1ca.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.