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

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • 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.