diff --git a/packages/hub/test/hub/Hub.test.ts b/packages/hub/test/hub/Hub.test.ts index 2df3b8fe..d40376fc 100644 --- a/packages/hub/test/hub/Hub.test.ts +++ b/packages/hub/test/hub/Hub.test.ts @@ -34,7 +34,7 @@ describe('Hub', function () { const hub = new Hub(); await hub.start(); await new Promise(resolve => ( hub).messengerServer.close(resolve)); - await expect(hub.stop()).to.be.rejectedWith('not running'); + await expect(hub.stop()).to.be.rejectedWith(/not running/i); }); });