MCPcopy
hub / github.com/wonday/react-native-pdf / pixelDiffPNGs

Function pixelDiffPNGs

example/__windows_tests__/TestPDF.js:24–26  ·  view source on GitHub ↗
(img1, img2)

Source from the content-addressed store, hash-verified

22const pixelThreshold = 10; // Allow 10 pixel difference, to account for anti-aliasing differences.
23
24function pixelDiffPNGs(img1, img2) {
25 return pixelmatch(img1.data, img2.data, null, img1.width, img1.height);
26}
27
28describe('Test App', () => {
29

Callers 1

TestPDF.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected