js-algorithms/node_modules/mocha/lib/browser/tty.js

13 lines
267 B
JavaScript
Raw Normal View History

2015-07-24 06:44:18 +00:00
exports.isatty = function(){
return true;
};
exports.getWindowSize = function(){
if ('innerHeight' in global) {
return [global.innerHeight, global.innerWidth];
} else {
// In a Web Worker, the DOM Window is not available.
return [640, 480];
}
};