Skip to content

Commit 06bb47d

Browse files
committed
Fix factories test
1 parent edc9d92 commit 06bb47d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

packages/state-manager/src/utils/tests/factories.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,21 @@ export const getSocketFactory = async () => {
620620
},
621621
})
622622

623+
factory.define<SetUserProfilePayload>(SocketActions.USER_PROFILES_UPDATED, Object, [
624+
{
625+
profile: {
626+
userId: 'user-id',
627+
nickname: 'Test User',
628+
photo: 'dGVzdAo=',
629+
bio: 'This is a test user profile',
630+
userData: {
631+
onionAddress: 'test.onion',
632+
peerId: 'peer-id',
633+
},
634+
},
635+
},
636+
])
637+
623638
factory.define<SetUserProfileResponse>(`${SocketActions.SET_USER_PROFILE}_response`, Object, {
624639
success: true,
625640
error: undefined,

0 commit comments

Comments
 (0)