You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a missing test for ignoring a color. Going by the already existing tests I would suggest something like the below:
it('ignores a given color for images with a source', async () => {
const img = 'http://localhost:9080/dominant-red-secondary-green.png'
const ignoreColors = [ 'rgb(255,0,0)']
const result = await analyze(img, { ignore: ignoreColors })
expect(result[0].count).toEqual(25)
expect(result[0].color).toEqual(green)
})
Thoughts?
The text was updated successfully, but these errors were encountered:
Hi,
There is a missing test for ignoring a color. Going by the already existing tests I would suggest something like the below:
Thoughts?
The text was updated successfully, but these errors were encountered: