Skip to content

Commit

Permalink
test: Missing test
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinszuchet committed Jan 23, 2025
1 parent ea39c57 commit 3003b4a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/unit/logic/friendships.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -586,11 +586,14 @@ describe('getFriendshipRequestStatus()', () => {
})

describe('parseEmittedUpdateToFriendConnectivityUpdate()', () => {
test('it should parse ONLINE update properly', () => {
const update = { address: '0x123', status: ConnectivityStatus.ONLINE }
test.each([
[ConnectivityStatus.OFFLINE, 'offline'],
[ConnectivityStatus.ONLINE, 'online']
])('it should parse status %s update properly', (status) => {
const update = { address: '0x123', status }
expect(parseEmittedUpdateToFriendConnectivityUpdate(update, mockProfile, PROFILE_IMAGES_URL)).toEqual({
friend: parseProfileToFriend(mockProfile, PROFILE_IMAGES_URL),
status: ConnectivityStatus.ONLINE
status
})
})
})
Expand Down

0 comments on commit 3003b4a

Please sign in to comment.