mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-29 21:15:19 +00:00
fix
This commit is contained in:
@@ -98,7 +98,7 @@ test("will play an audio sound when there is a reaction", () => {
|
|||||||
reactionsSubject$.next({
|
reactionsSubject$.next({
|
||||||
[aliceRtcMember.deviceId]: {
|
[aliceRtcMember.deviceId]: {
|
||||||
reactionOption: chosenReaction,
|
reactionOption: chosenReaction,
|
||||||
expireAfter: 0,
|
expireAfter: new Date(0),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -124,7 +124,7 @@ test("will play the generic audio sound when there is soundless reaction", () =>
|
|||||||
reactionsSubject$.next({
|
reactionsSubject$.next({
|
||||||
[aliceRtcMember.deviceId]: {
|
[aliceRtcMember.deviceId]: {
|
||||||
reactionOption: chosenReaction,
|
reactionOption: chosenReaction,
|
||||||
expireAfter: 0,
|
expireAfter: new Date(0),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -148,9 +148,18 @@ test("will play multiple audio sounds when there are multiple different reaction
|
|||||||
}
|
}
|
||||||
act(() => {
|
act(() => {
|
||||||
reactionsSubject$.next({
|
reactionsSubject$.next({
|
||||||
[aliceRtcMember.deviceId]: { reactionOption: reaction1, expireAfter: 0 },
|
[aliceRtcMember.deviceId]: {
|
||||||
[bobRtcMember.deviceId]: { reactionOption: reaction2, expireAfter: 0 },
|
reactionOption: reaction1,
|
||||||
[localRtcMember.deviceId]: { reactionOption: reaction1, expireAfter: 0 },
|
expireAfter: new Date(0),
|
||||||
|
},
|
||||||
|
[bobRtcMember.deviceId]: {
|
||||||
|
reactionOption: reaction2,
|
||||||
|
expireAfter: new Date(0),
|
||||||
|
},
|
||||||
|
[localRtcMember.deviceId]: {
|
||||||
|
reactionOption: reaction1,
|
||||||
|
expireAfter: new Date(0),
|
||||||
|
},
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
expect(playSound).toHaveBeenCalledWith(reaction1.name);
|
expect(playSound).toHaveBeenCalledWith(reaction1.name);
|
||||||
|
|||||||
Reference in New Issue
Block a user