2
0
mirror of https://github.com/gchq/CyberChef synced 2026-01-10 12:33:16 +00:00

swap ENVIRONMENT_IS_* functions for Utils named exports

This commit is contained in:
d98762625
2019-07-05 10:17:52 +01:00
parent c70f14419a
commit 1c24c05647
41 changed files with 117 additions and 141 deletions

View File

@@ -15,17 +15,6 @@ import {
logTestReport,
} from "../lib/utils";
// Define global environment functions
global.ENVIRONMENT_IS_WORKER = function() {
return typeof importScripts === "function";
};
global.ENVIRONMENT_IS_NODE = function() {
return typeof process === "object" && typeof require === "function";
};
global.ENVIRONMENT_IS_WEB = function() {
return typeof window === "object";
};
import TestRegister from "../lib/TestRegister";
import "./tests/nodeApi";
import "./tests/operations";