@fakes/media-devices
Version:
A interactive fake implementation of MediaDevices interface in the browser for testing
14 lines (13 loc) • 387 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ThrowingNotImplemented = void 0;
class ThrowingNotImplemented {
constructor(_reporter) {
this._reporter = _reporter;
}
call(message) {
this._reporter.notImplemented(message);
throw new Error(message);
}
}
exports.ThrowingNotImplemented = ThrowingNotImplemented;