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] }), 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", { expectObservable(audioInput.available$).toBe("a", {
a: new Map([ a: new Map([
@@ -79,7 +81,9 @@ describe("AudioInput", () => {
cold("a", { a: [CHROME_DEFAULT, BUILT_IN_MIC, HEADSET_MIC] }), 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", { expectObservable(audioInput.selected$).toBe("a", {
a: expect.objectContaining({ id: "default" }), 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) }); schedule("--a", { a: () => audioInput.select(HEADSET_MIC.deviceId) });
@@ -236,6 +236,7 @@ describe("Publisher device sync", () => {
muteStates, muteStates,
constant({ supported: false, processor: undefined }), constant({ supported: false, processor: undefined }),
logger, logger,
false,
); );
return { publisher, switchActiveDevice }; return { publisher, switchActiveDevice };