Skip to content

Commit

Permalink
fix: rtl tests
Browse files Browse the repository at this point in the history
  • Loading branch information
siepra committed Nov 9, 2023
1 parent cf0ed9f commit 5e08cb6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/desktop/src/rtl-tests/community.join.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<SendOwnerCertificatePayload>(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: [],
},
Expand Down

0 comments on commit 5e08cb6

Please sign in to comment.