MACHIN
This commit is contained in:
		
							
								
								
									
										17
									
								
								32/node_modules/object-inspect/test/global.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								32/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' ? 'global' : 'Window';
 | 
			
		||||
    t.equal(
 | 
			
		||||
        inspect([globalThis]),
 | 
			
		||||
        '[ { [object ' + expected + '] } ]'
 | 
			
		||||
    );
 | 
			
		||||
 | 
			
		||||
    t.end();
 | 
			
		||||
});
 | 
			
		||||
		Reference in New Issue
	
	Block a user