Wait for the debouncer in the leading-slash bridge test
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user