first commit
This commit is contained in:
17
app_vue/node_modules/object-inspect/test/global.js
generated
vendored
Normal file
17
app_vue/node_modules/object-inspect/test/global.js
generated
vendored
Normal 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();
|
||||
});
|
Reference in New Issue
Block a user