Files
Lab4/17/node_modules/object-inspect/test/global.js
MishaBagger b6c10cc93f MACHIN
2023-10-25 09:15:21 +03:00

18 lines
368 B
JavaScript

'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' ? 'global' : 'Window';
t.equal(
inspect([globalThis]),
'[ { [object ' + expected + '] } ]'
);
t.end();
});