feat(backend): add SIMPLE_STREAMING WebRTC control-path streaming

This commit is contained in:
2026-03-05 13:30:00 +00:00
parent c458857f0a
commit 19baf76169
14 changed files with 448 additions and 189 deletions

View File

@@ -0,0 +1,22 @@
import { describe, expect, test } from 'bun:test';
import { parseFeatureFlag } from '../media/config';
describe('media config feature flags', () => {
test('parses enabled values', () => {
expect(parseFeatureFlag('true', false)).toBe(true);
expect(parseFeatureFlag('1', false)).toBe(true);
expect(parseFeatureFlag('yes', false)).toBe(true);
});
test('parses disabled values', () => {
expect(parseFeatureFlag('false', true)).toBe(false);
expect(parseFeatureFlag('0', true)).toBe(false);
expect(parseFeatureFlag('off', true)).toBe(false);
});
test('falls back to default value for unknown input', () => {
expect(parseFeatureFlag(undefined, true)).toBe(true);
expect(parseFeatureFlag('maybe', false)).toBe(false);
});
});