diff options
Diffstat (limited to 'node_modules/mocha/lib/browser/tty.js')
| -rw-r--r-- | node_modules/mocha/lib/browser/tty.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/node_modules/mocha/lib/browser/tty.js b/node_modules/mocha/lib/browser/tty.js new file mode 100644 index 0000000..840d669 --- /dev/null +++ b/node_modules/mocha/lib/browser/tty.js @@ -0,0 +1,11 @@ +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]; +}; |
