|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 13 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
372 bytes
|
| Rev | Line | |
|---|
| [9af201e] | 1 | 'use strict';
|
|---|
| 2 |
|
|---|
| 3 | var inspect = require('../');
|
|---|
| 4 |
|
|---|
| 5 | var test = require('tape');
|
|---|
| 6 | var globalThis = require('globalthis')();
|
|---|
| 7 |
|
|---|
| 8 | test('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.