From f016bdbc35b7efa44bd63413bde09433ea916c59 Mon Sep 17 00:00:00 2001 From: HumairAK Date: Tue, 26 Jul 2016 03:43:04 -0400 Subject: added some unit testing, need a lot more --- node_modules/mocha/lib/browser/tty.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 node_modules/mocha/lib/browser/tty.js (limited to 'node_modules/mocha/lib/browser/tty.js') 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]; +}; -- cgit v1.2.3