From 34de5932029553daa667039b8bee3348f8126821 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Mon, 18 Aug 2014 14:49:02 +0200 Subject: [PATCH] test: add `global.navigator` for browser tests The debug module uses `navigator.userAgent` to detect whether the browser support colors in console logs. --- test/browser.test.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/browser.test.js b/test/browser.test.js index 3a6c94b..d4c3846 100644 --- a/test/browser.test.js +++ b/test/browser.test.js @@ -70,6 +70,9 @@ function createBrowserLikeContext() { // used by `debug` module document: { documentElement: { style: {} } }, + // used by `debug` module + navigator: { userAgent: 'sandbox' }, + // used by crypto-browserify & friends Int32Array: Int32Array, DataView: DataView,