Skip to content

Commit

Permalink
fix(MembershipsSdkAdapter): fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
maloun96 authored and lalli-flores committed Mar 22, 2021
1 parent 825a0ed commit 65baa63
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/MembershipsSDKAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function getMembers(members) {
.filter((member) => member.isUser)
.map((member) => ({
id: member.id,
inMeeting: member.isInMeeting,
inMeeting: member.inMeeting,
muted: member.isAudioMuted,
}));
}
Expand Down
7 changes: 6 additions & 1 deletion src/MembershipsSDKAdapter.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,14 @@ describe('Memberships SDK Adapter', () => {
},
{
id: 'mutedPerson',
inMeeting: false,
inMeeting: true,
muted: true,
},
{
id: 'notJoinedPerson',
inMeeting: false,
muted: false,
},
],
});
done();
Expand Down
2 changes: 1 addition & 1 deletion src/mockSdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const mockSDKMeeting = {
person2: {
...mockSDKPerson,
id: 'mutedPerson',
isInMeeting: true,
inMeeting: true,
isUser: true,
isAudioMuted: true,
},
Expand Down

0 comments on commit 65baa63

Please sign in to comment.