AI_Assistant/node_modules/mocha/lib/browser/tty.js

14 lines
290 B
JavaScript
Raw Normal View History

2023-01-08 03:00:40 +00:00
'use strict';
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];
};