pixelnode/node_modules/mocha/lib/browser/tty.js
2018-04-04 12:31:55 +02:00

12 lines
275 B
JavaScript

exports.isatty = function isatty() {
return true;
};
exports.getWindowSize = function getWindowSize() {
if ('innerHeight' in global) {
return [global.innerHeight, global.innerWidth];
}
// In a Web Worker, the DOM Window is not available.
return [640, 480];
};