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(notifications): pin the avatar channel the preferences endpoint already serves

nirholas16d97f4ecbcb
diff --git a/tests/api/notifications-item-and-prefs.test.js b/tests/api/notifications-item-and-prefs.test.js
index cb2d7f84d..263b5105e 100644
--- a/tests/api/notifications-item-and-prefs.test.js
+++ b/tests/api/notifications-item-and-prefs.test.js
@@ -191,7 +191,11 @@ describe('GET /api/notifications/preferences', () => {
dbState.pushDevices = 2;
const { res, body } = await call(prefsHandler, { method: 'GET' });
expect(res.statusCode).toBe(200);
- expect(body.channels).toEqual(['in_app', 'push', 'email', 'telegram']);
+ // Pinned deliberately as a literal, not derived from CHANNELS: this is the
+ // wire contract the notifications page and the SDK read, so adding a
+ // channel should have to come here and say so. 'avatar' landed with the
+ // corner-avatar delivery lane.
+ expect(body.channels).toEqual(['in_app', 'push', 'email', 'telegram', 'avatar']);
expect(body.categories.map((c) => c.key)).toContain('social');
expect(body.prefs.categories.social).toBeTruthy();
expect(body.push).toEqual({ subscribed_devices: 2 });