diff --git a/test/unit-tests.spec.ts b/test/unit-tests.spec.ts index 9a09397..50dea19 100644 --- a/test/unit-tests.spec.ts +++ b/test/unit-tests.spec.ts @@ -133,7 +133,7 @@ describe("Usbmux-client unit tests", () => { const deviceQueryResult = await client.getDevices().catch(e => e); expect(deviceQueryResult).to.be.instanceOf(Error); - expect(deviceQueryResult.message).to.contain("ECONNREFUSED"); + expect(deviceQueryResult.code).to.equal("ECONNREFUSED"); await startServer(port);