mirror of
https://github.com/vector-im/element-call.git
synced 2026-09-13 21:59:30 +00:00
move prefetch sounds to fix hot reload
This commit is contained in:
@@ -29,8 +29,9 @@ import {
|
||||
playReactionsSound,
|
||||
soundEffectVolumeSetting,
|
||||
} from "../settings/settings";
|
||||
import { prefetchSounds, useAudioContext } from "../useAudioContext";
|
||||
import { useAudioContext } from "../useAudioContext";
|
||||
import { GenericReaction, ReactionSet } from "../reactions";
|
||||
import { prefetchSounds } from "../soundUtils";
|
||||
|
||||
const memberUserIdAlice = "@alice:example.org";
|
||||
const memberUserIdBob = "@bob:example.org";
|
||||
@@ -60,6 +61,7 @@ function TestComponent({
|
||||
}
|
||||
|
||||
vitest.mock("../useAudioContext");
|
||||
vitest.mock("../soundUtils");
|
||||
|
||||
afterEach(() => {
|
||||
vitest.resetAllMocks();
|
||||
|
||||
Reference in New Issue
Block a user