source: frontend/node_modules/object-inspect/test/global.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 372 bytes
Line 
1'use strict';
2
3var inspect = require('../');
4
5var test = require('tape');
6var globalThis = require('globalthis')();
7
8test('global object', function (t) {
9 /* eslint-env browser */
10 var expected = typeof window === 'undefined' ? 'globalThis' : 'Window';
11 t.equal(
12 inspect([globalThis]),
13 '[ { [object ' + expected + '] } ]'
14 );
15
16 t.end();
17});
Note: See TracBrowser for help on using the repository browser.