First commit

This commit is contained in:
2021-03-07 05:58:59 +01:00
committed by Andreas Schaafsma
commit 6e1a5f9fe5
18475 changed files with 3309357 additions and 0 deletions

View File

@@ -0,0 +1,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));
});
});

10
hGameTest/node_modules/ext/test/global-this/index.js generated vendored Normal file
View File

@@ -0,0 +1,10 @@
"use strict";
var isObject = require("type/object/is")
, assert = require("chai").assert
, globalThis = require("../../global-this");
describe("global-this", function () {
it("Should be an object", function () { assert(isObject(globalThis)); });
it("Should be a global object", function () { assert.equal(globalThis.Array, Array); });
});

View File

@@ -0,0 +1,8 @@
"use strict";
var assert = require("chai").assert
, isImplemented = require("../../global-this/is-implemented");
describe("global-this/is-implemented", function () {
it("Should return boolean", function () { assert.equal(typeof isImplemented(), "boolean"); });
});