MCPcopy
hub / github.com/jimp-dev/jimp / test

Function test

packages/test-utils/src/index.ts:200–206  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

198 return `Visualization:\n\n${testImgToStr(bitmap)}\n\nData:\n\n${testImageReadableMatrix(bitmap)}`;
199 },
200 test(val) {
201 if ("bitmap" in val) {
202 return true;
203 }
204
205 return val && val.width && val.height && val.data;
206 },
207});
208
209export function getTestImagePath(

Callers 15

index.test.tsFile · 0.85
index.test.tsFile · 0.85
exif.node.test.tsFile · 0.85
scan.test.tsFile · 0.85
callbacks.test.tsFile · 0.85
jimp.test.tsFile · 0.85
index.test.tsFile · 0.85
crop.test.tsFile · 0.85
autocrop.test.tsFile · 0.85
index.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…