gemini-testing / gemini-testing/looks-same

`looksSame` throws an error when an error is present using the readme code

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

Description

`looksSame` throws an error when an error is present, using the readme code
```
looksSame('image1.png', 'image2.png', function(error, {equal}) {
// equal will be true, if images looks the same
});

> TypeError: Cannot destructure property `equal` of 'undefined' or 'null'.
```
Should probably update the docs to set the default in the callback i.e.
```
looksSame('image1.png', 'image2.png', function(error, {equal} = {}) {
// equal will be true, if images looks the same
});
```

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.