arnaucube
arnaucube/comunicationLeapPublic Self-hosted repository
comunicationLeap/node_modules/global/test/test.js
node_modules/global/test/test.jsRaw
 1
 2/**
 3 * Module dependencies.
 4 */
 5
 6var assert = require('assert');
 7var global;
 8
 9try {
10  // component
11  global = require('global');
12} catch (e) {
13  // node.js
14  global = require('../');
15}
16
17describe('global', function () {
18  it('should return the `global` object', function () {
19    var str = String(global);
20    assert('[object global]' == str || '[object Window]' == str);
21  });
22});