From 8688907bb6cf7aa9fce73c4fd74238f824af66ba Mon Sep 17 00:00:00 2001 From: Half-Shot Date: Tue, 17 Dec 2024 12:00:22 +0000 Subject: [PATCH] fix --- src/room/ReactionAudioRenderer.test.tsx | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/src/room/ReactionAudioRenderer.test.tsx b/src/room/ReactionAudioRenderer.test.tsx index 9f1f4efb..ec71571c 100644 --- a/src/room/ReactionAudioRenderer.test.tsx +++ b/src/room/ReactionAudioRenderer.test.tsx @@ -98,7 +98,7 @@ test("will play an audio sound when there is a reaction", () => { reactionsSubject$.next({ [aliceRtcMember.deviceId]: { 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({ [aliceRtcMember.deviceId]: { 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(() => { reactionsSubject$.next({ - [aliceRtcMember.deviceId]: { reactionOption: reaction1, expireAfter: 0 }, - [bobRtcMember.deviceId]: { reactionOption: reaction2, expireAfter: 0 }, - [localRtcMember.deviceId]: { reactionOption: reaction1, expireAfter: 0 }, + [aliceRtcMember.deviceId]: { + reactionOption: reaction1, + 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);