Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

test(selfie): expect the clippedFrac field grayFaceStats actually returns

nirholas6fe4656b3d09
diff --git a/tests/selfie-gates.test.js b/tests/selfie-gates.test.js
index ed92b7c64..43ee387b7 100644
--- a/tests/selfie-gates.test.js
+++ b/tests/selfie-gates.test.js
@@ -41,8 +41,8 @@ describe('grayFaceStats', () => {
});
it('handles degenerate sizes without NaN', () => {
- expect(grayFaceStats(grey(2, 2, () => 50), 2, 2)).toEqual({ luma: 50, blurStddev: 0 });
- expect(grayFaceStats([], 0, 0)).toEqual({ luma: 0, blurStddev: 0 });
+ expect(grayFaceStats(grey(2, 2, () => 50), 2, 2)).toEqual({ luma: 50, blurStddev: 0, clippedFrac: 0 });
+ expect(grayFaceStats([], 0, 0)).toEqual({ luma: 0, blurStddev: 0, clippedFrac: 0 });
});
});