From 5e08cb6a0c62ea28a25df895f241efbabead4cfa Mon Sep 17 00:00:00 2001 From: siepra Date: Thu, 9 Nov 2023 16:09:19 +0100 Subject: [PATCH] fix: rtl tests --- packages/desktop/src/rtl-tests/community.join.test.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/desktop/src/rtl-tests/community.join.test.tsx b/packages/desktop/src/rtl-tests/community.join.test.tsx index 8768895ad5..aa6151d916 100644 --- a/packages/desktop/src/rtl-tests/community.join.test.tsx +++ b/packages/desktop/src/rtl-tests/community.join.test.tsx @@ -116,13 +116,14 @@ describe('User', () => { }, communityHelper.CA ) - const certificate = certificateHelper.userCert.userCertString + const certificate = certificateHelper.userCert?.userCertString const rootCa = communityHelper.CA?.rootCertString return socket.socketClient.emit(SocketActionTypes.SEND_USER_CERTIFICATE, { communityId: payload.communityId, payload: { + // @ts-expect-error - This is statically mocked data so it'll never be undefined certificate: certificate, - // @ts-expect-error + // @ts-expect-error - This is statically mocked data so it'll never be undefined rootCa: rootCa, peers: [], },