fix: tighten edge cases across services (#3158)

This commit is contained in:
Hampus authored and GitHub committed 2026-10-03 13:04:29 +02:00
1 parent a9f7a23c0d
commit 4e6b837ccc
170 files changed
+2028 -421

No files matched your search

@@ -307,7 +307,7 @@ describe('ensureVideoDDExtension', () => {
expect(ddOf(sdp, '1')).toBe(13);
});
it('leaves a section that already carries the extension alone', () => {
it('leaves a section that already has the extension alone', () => {
const sdp = parse(`${singlePcOffer}\na=extmap:3 ${ddExtensionURI}`);
expect(ensureVideoDDExtension(sectionOf(sdp, '2'), sdp, 0)).toBe(3);
expect(sectionOf(sdp, '2').ext).toHaveLength(2);
@@ -214,7 +214,7 @@ describe('publisher data channels before negotiation', () => {
return {engine, created};
}
it('creates them on a renegotiation that already carries transceivers', async () => {
it('creates them on a renegotiation that already has transceivers', async () => {
const {engine, created} = engineWithPublisherChannels(false);
await engine.negotiate();
expect(created).toEqual(['publisher']);