heyujie
2021-06-07 8f8155aa4c83f7c2577ac123add550766b6a7ce3
1
2
3
4
5
6
7
8
9
10
11
12
13
"use strict";
 
var isObject   = require("type/object/is")
  , assert     = require("chai").assert
  , globalThis = require("../../global-this/implementation");
 
describe("global-this/implementation", function () {
    it("Should be an object", function () { assert(isObject(globalThis)); });
    it("Should be a global object", function () { assert.equal(globalThis.Array, Array); });
    it("Internal resolution should not introduce side-effects", function () {
        assert(!("__global__" in Object.prototype));
    });
});