UNPKG

@fakes/media-devices

Version:

A interactive fake implementation of MediaDevices interface in the browser for testing

23 lines (22 loc) 554 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DefaultReporter = exports.NoopReporter = void 0; class NoopReporter { notImplemented(message) { // do nothing } report(producer) { // do nothing } } exports.NoopReporter = NoopReporter; class DefaultReporter { notImplemented(message) { console.log('mdf', '💥', message); } report(producer) { const parts = producer(); console.log('mdf', ...parts); } } exports.DefaultReporter = DefaultReporter;