From da4093b938a4b40e7ee0663307f071aae549c064 Mon Sep 17 00:00:00 2001 From: Mario Du Date: Fri, 14 Dec 2018 11:22:20 +0800 Subject: [PATCH] fix: fix hub test --- packages/hub/test/hub/Hub.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }); });