SAP-BTP-Spielwiese/app1/node_modules/object-inspect/test/global.js
Markus Rettig 775ac7b58c completed step 3 from the tutorial
you must login with an BTP account in order to see the app
2024-02-08 16:13:36 +01:00

17 lines
372 B
JavaScript

'use strict';
var inspect = require('../');
var test = require('tape');
var globalThis = require('globalthis')();
test('global object', function (t) {
/* eslint-env browser */
var expected = typeof window === 'undefined' ? 'globalThis' : 'Window';
t.equal(
inspect([globalThis]),
'[ { [object ' + expected + '] } ]'
);
t.end();
});