You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

22 lines
382 B

/**
* Module dependencies.
*/
var assert = require('assert');
var global;
try {
// component
global = require('global');
} catch (e) {
// node.js
global = require('../');
}
describe('global', function () {
it('should return the `global` object', function () {
var str = String(global);
assert('[object global]' == str || '[object Window]' == str);
});
});