Telegram Web K with changes to work inside I2P
https://web.telegram.i2p/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
363 B
17 lines
363 B
3 years ago
|
import { fixLocalOffer } from "../lib/calls/utils";
|
||
|
import data from "../mock/webrtc/data";
|
||
|
import sdp from "../mock/webrtc/sdp";
|
||
|
|
||
|
const offer: RTCSessionDescriptionInit = {type: 'offer', sdp};
|
||
|
|
||
|
test('fix SDP', () => {
|
||
|
const fixed = fixLocalOffer({
|
||
|
offer,
|
||
|
data
|
||
|
});
|
||
|
|
||
|
// console.log(fixed.offer.sdp);
|
||
|
|
||
|
expect(fixed.offer).toEqual(fixed.offer);
|
||
|
});
|