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