aboutsummaryrefslogtreecommitdiffstats
path: root/backend/node_modules/object-inspect/test/global.js
diff options
context:
space:
mode:
Diffstat (limited to 'backend/node_modules/object-inspect/test/global.js')
-rw-r--r--backend/node_modules/object-inspect/test/global.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/backend/node_modules/object-inspect/test/global.js b/backend/node_modules/object-inspect/test/global.js
new file mode 100644
index 0000000..c57216a
--- /dev/null
+++ b/backend/node_modules/object-inspect/test/global.js
@@ -0,0 +1,17 @@
+'use strict';
+
+var inspect = require('../');
+
+var test = require('tape');
+var globalThis = require('globalthis')();
+
+test('global object', function (t) {
+ /* eslint-env browser */
+ var expected = typeof window === 'undefined' ? 'globalThis' : 'Window';
+ t.equal(
+ inspect([globalThis]),
+ '[ { [object ' + expected + '] } ]'
+ );
+
+ t.end();
+});