refactor(Cypress): add nodemodules
This commit is contained in:
13
node_modules/ext/test/global-this/implementation.js
generated
vendored
Normal file
13
node_modules/ext/test/global-this/implementation.js
generated
vendored
Normal 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
node_modules/ext/test/global-this/index.js
generated
vendored
Normal file
10
node_modules/ext/test/global-this/index.js
generated
vendored
Normal 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); });
|
||||
});
|
8
node_modules/ext/test/global-this/is-implemented.js
generated
vendored
Normal file
8
node_modules/ext/test/global-this/is-implemented.js
generated
vendored
Normal 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"); });
|
||||
});
|
Reference in New Issue
Block a user