Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

test(console): check pane icons for an emoji form, not Extended_Pictographic

martinvlad3fe9af0066dd
diff --git a/plugins/ruflo-console/tests/pane-icons.spec.ts b/plugins/ruflo-console/tests/pane-icons.spec.ts
index 9418efc801..a3fb556597 100644
--- a/plugins/ruflo-console/tests/pane-icons.spec.ts
+++ b/plugins/ruflo-console/tests/pane-icons.spec.ts
@@ -107,10 +107,19 @@ describe('the icon row', () => {
expect([...glyph].length, name).toBe(1)
expect(glyph, name).not.toBe('?')
// None may be an emoji, or have an emoji form: a terminal can draw those two cells wide, and the lit icon (bold) would then jump.
- expect(glyph, name).not.toMatch(/\p{Extended_Pictographic}|\p{Emoji_Presentation}/u)
+ // \p{Emoji} is exactly "has an emoji form" (âš™ yes, â›­ no); \p{Extended_Pictographic} also covers reserved emoji-range
+ // code points such as â›­ that have no emoji form, which is why settings uses it.
+ expect(glyph, name).not.toMatch(/\p{Emoji}|\p{Emoji_Presentation}/u)
}
})
+ it('the emoji-form check tells a gear with an emoji form from one without', () => {
+ const emojiForm = /\p{Emoji}|\p{Emoji_Presentation}/u
+ expect('âš™').toMatch(emojiForm) // U+2699 takes an emoji form with U+FE0F
+ expect('☀').toMatch(emojiForm)
+ for (const glyph of ['⛭', '⌂', '⌘', 'ʔ', '⟳']) expect(glyph).not.toMatch(emojiForm)
+ })
+
it('each icon does its one thing', () => {
calls.length = 0