This commit is contained in:
fencl
2024-01-02 12:56:43 +01:00
parent 11f54265c4
commit 386622df5d
1489 changed files with 196315 additions and 0 deletions

View File

@@ -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();
});