Initial import: open-design source for helix-mind.ai distribution
Some checks failed
ci / Validate workspace (push) Successful in 12m32s
landing-page-ci / Validate landing page (push) Successful in 9m41s
landing-page-deploy / Deploy landing page (push) Failing after 5m23s
refresh-contributors-wall / Refresh contributors wall cache bust (push) Failing after 12s
github-metrics / Generate repository metrics SVG (push) Failing after 2m8s
Some checks failed
ci / Validate workspace (push) Successful in 12m32s
landing-page-ci / Validate landing page (push) Successful in 9m41s
landing-page-deploy / Deploy landing page (push) Failing after 5m23s
refresh-contributors-wall / Refresh contributors wall cache bust (push) Failing after 12s
github-metrics / Generate repository metrics SVG (push) Failing after 2m8s
This repository contains the open-design daemon CLI source code, built and packaged at https://helix-mind.ai/cli/open-design/latest.tgz for use by the HelixMind /design slash command. Licenses: Apache-2.0 (root) + MIT (skills/*)
This commit is contained in:
21
apps/web/tests/components/AgentIcon.test.tsx
Normal file
21
apps/web/tests/components/AgentIcon.test.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import { renderToStaticMarkup } from 'react-dom/server';
|
||||
import { describe, expect, it } from 'vitest';
|
||||
|
||||
import { AgentIcon } from '../../src/components/AgentIcon';
|
||||
|
||||
describe('AgentIcon', () => {
|
||||
it('renders Qoder with a dedicated supplied-mark visual', () => {
|
||||
const markup = renderToStaticMarkup(<AgentIcon id="qoder" size={24} />);
|
||||
|
||||
expect(markup).toContain('background:#111113');
|
||||
expect(markup).toContain('fill="#2ADB5C"');
|
||||
expect(markup).toContain('fill="#FFFFFF"');
|
||||
});
|
||||
|
||||
it('keeps unknown agents on the generic fallback visual', () => {
|
||||
const markup = renderToStaticMarkup(<AgentIcon id="unknown-agent" size={24} />);
|
||||
|
||||
expect(markup).toContain('linear-gradient(135deg, #6b7280 0%, #4b5563 100%)');
|
||||
expect(markup).not.toContain('fill="#2ADB5C"');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user