Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

test(companion): cover an emoji on the mDNS label limit

afinitus81d0d08df7e3
diff --git a/companion/test/mdns.test.ts b/companion/test/mdns.test.ts
index 21a4610a33..82e284205e 100644
--- a/companion/test/mdns.test.ts
+++ b/companion/test/mdns.test.ts
@@ -239,6 +239,7 @@ describe("naming", () => {
expect(dnsLabel("Dr. Smith's computer")).toBe("Dr Smith's computer");
expect(dnsLabel("x".repeat(200)).length).toBeLessThanOrEqual(63);
expect(Buffer.byteLength(dnsLabel("é".repeat(60)), "utf8")).toBeLessThanOrEqual(63);
+ expect(dnsLabel("a".repeat(60) + "\u{1F600}")).toBe("a".repeat(60));
expect(dnsLabel("")).toBe("OpenMausBot");
expect(dnsLabel(" ")).toBe("OpenMausBot");
});