Adapt to changes from main

This commit is contained in:
Johannes Marbach
2026-09-16 17:11:18 +02:00
parent bc772fadd3
commit a64a911b23
2 changed files with 10 additions and 3 deletions
+9 -3
View File
@@ -58,7 +58,9 @@ describe("AudioInput", () => {
cold("a", { a: [BUILT_IN_MIC, HEADSET_MIC] }),
);
const { audioInput } = new MediaDevices(testScope);
const { audioInput } = new MediaDevices(testScope, {
controlledAudioDevices: false,
});
expectObservable(audioInput.available$).toBe("a", {
a: new Map([
@@ -79,7 +81,9 @@ describe("AudioInput", () => {
cold("a", { a: [CHROME_DEFAULT, BUILT_IN_MIC, HEADSET_MIC] }),
);
const { audioInput } = new MediaDevices(testScope);
const { audioInput } = new MediaDevices(testScope, {
controlledAudioDevices: false,
});
expectObservable(audioInput.selected$).toBe("a", {
a: expect.objectContaining({ id: "default" }),
@@ -96,7 +100,9 @@ describe("AudioInput", () => {
}),
);
const { audioInput } = new MediaDevices(testScope);
const { audioInput } = new MediaDevices(testScope, {
controlledAudioDevices: false,
});
schedule("--a", { a: () => audioInput.select(HEADSET_MIC.deviceId) });
@@ -236,6 +236,7 @@ describe("Publisher device sync", () => {
muteStates,
constant({ supported: false, processor: undefined }),
logger,
false,
);
return { publisher, switchActiveDevice };