webrtc-adapter
Version:
A shim to insulate apps from WebRTC spec changes and browser prefix differences
29 lines (25 loc) • 720 B
JavaScript
/*
* Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree.
*/
/* eslint-env node */
;
describe('RTCPeerConnection', () => {
it('window.RTCPeerConnection exists', () => {
expect(window).to.have.property('RTCPeerConnection');
});
it('constructor works', () => {
const constructor = () => {
return new RTCPeerConnection();
};
expect(constructor).not.to.throw();
});
describe('getSenders', () => {
it('exists', () => {
expect(RTCPeerConnection.prototype).to.have.property('getSenders');
});
});
});