Node-Red configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

global.js 372B

1234567891011121314151617
  1. 'use strict';
  2. var inspect = require('../');
  3. var test = require('tape');
  4. var globalThis = require('globalthis')();
  5. test('global object', function (t) {
  6. /* eslint-env browser */
  7. var expected = typeof window === 'undefined' ? 'globalThis' : 'Window';
  8. t.equal(
  9. inspect([globalThis]),
  10. '[ { [object ' + expected + '] } ]'
  11. );
  12. t.end();
  13. });