Newer
Older
ez-indexation / app / node_modules / mocha / lib / browser / tty.js
@kieffer kieffer on 7 Mar 2017 292 bytes v0.0.0
'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];
};