Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
EmiM committed Apr 16, 2024
1 parent 858065f commit 7c0898a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
7 changes: 2 additions & 5 deletions packages/desktop/src/rtl-tests/community.join.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ import {
InvitationData,
ChannelsReplicatedPayload,
ChannelSubscribedPayload,
Community,
ErrorPayload,
type InitCommunityPayload,
type NetworkInfo,
InitCommunityPayload,
ResponseLaunchCommunityPayload,
SocketActionTypes,
} from '@quiet/types'
Expand Down Expand Up @@ -169,11 +167,10 @@ describe('User', () => {

expect(actions).toMatchInlineSnapshot(`
Array [
"Communities/joinNetwork",
"Communities/createNetwork",
"Communities/setInvitationCodes",
"Communities/addNewCommunity",
"Communities/setCurrentCommunity",
"Communities/setInvitationCodes",
"Identity/addNewIdentity",
"Modals/closeModal",
"Modals/openModal",
Expand Down
3 changes: 1 addition & 2 deletions packages/mobile/src/tests/deep.linking.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,11 @@ describe('Deep linking', () => {
[
"Init/deepLink",
"Init/resetDeepLink",
"Communities/joinNetwork",
"Communities/createNetwork",
"Navigation/replaceScreen",
"Communities/setInvitationCodes",
"Communities/addNewCommunity",
"Communities/setCurrentCommunity",
"Communities/setInvitationCodes",
"Identity/addNewIdentity",
"Init/deepLink",
"Init/resetDeepLink",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ describe('launchCommunity', () => {
peers: community.peerList,
psk: undefined,
ownerOrbitDbIdentity: undefined,
inviteData: undefined,
}

await expectSaga(launchCommunitySaga, socket, communitiesActions.launchCommunity(community.id))
Expand Down Expand Up @@ -128,6 +129,7 @@ describe('launchCommunity', () => {
peers: community.peerList,
psk: undefined,
ownerOrbitDbIdentity: undefined,
inviteData: undefined,
}

await expectSaga(launchCommunitySaga, socket, communitiesActions.launchCommunity(community.id))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ export function* launchCommunitySaga(
}

const invitationCodes = yield* select(communitiesSelectors.invitationCodes)
console.log('!! ! ! !Current invitation codes', invitationCodes)
let peerList: string[] = []

if (invitationCodes) {
Expand Down

0 comments on commit 7c0898a

Please sign in to comment.