mirror of
https://github.com/webadderallorg/Recordly.git
synced 2026-09-26 15:55:35 +00:00
* Fix embedded audio fallback handling and audio diagnostics * Add recording fallback diagnostics toasts * Fix Windows audio fallback cleanup and path matching * Format rebased recording fallback changes * Fix embedded audio preview and export fallback handling
23 lines
725 B
TypeScript
23 lines
725 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
|
|
import { shouldUseWindowsBrowserMicrophoneFallback } from "./windowsFallbacks";
|
|
|
|
describe("shouldUseWindowsBrowserMicrophoneFallback", () => {
|
|
it("returns true when native Windows mic initialization fails", () => {
|
|
expect(
|
|
shouldUseWindowsBrowserMicrophoneFallback(
|
|
"WARNING: Failed to initialize WASAPI mic capture\nRecording started",
|
|
{ capturesMicrophone: true },
|
|
),
|
|
).toBe(true);
|
|
});
|
|
|
|
it("returns false when microphone capture was not requested", () => {
|
|
expect(
|
|
shouldUseWindowsBrowserMicrophoneFallback(
|
|
"WARNING: Failed to initialize WASAPI mic capture\nRecording started",
|
|
{ capturesMicrophone: false },
|
|
),
|
|
).toBe(false);
|
|
});
|
|
}); |