Wait for the debouncer in the leading-slash bridge test

This commit is contained in:
EugeneTes
2026-09-25 07:29:56 +00:00
parent 4fbb5a83a5
commit a1b1d12da2

View File

@@ -299,7 +299,7 @@ describe("registerBridge", () => {
const h = harness();
await h.bot.handleUpdate(textUpdate("/usr/local/bin is on my path", OWNER, "private", false));
expect(h.texts()).toEqual([]);
expect(h.host.sent).toEqual([{ text: "/usr/local/bin is on my path", images: undefined }]);
await vi.waitFor(() => expect(h.host.sent).toEqual([{ text: "/usr/local/bin is on my path", images: undefined }]));
});
it("tells the owner it cannot handle unsupported media", async () => {