summaryrefslogtreecommitdiff
path: root/runtime/js/40_testing.js
diff options
context:
space:
mode:
authorLuca Casonato <lucacasonato@yahoo.com>2021-03-12 21:23:59 +0100
committerGitHub <noreply@github.com>2021-03-12 21:23:59 +0100
commit0770449c938cdd0edbadaf1e87e460b21fc1b4ef (patch)
tree649807f55ed9e03f1d1cd5291295e8d4ff5345da /runtime/js/40_testing.js
parente83ff62ccbe33ad9c19cb9cab9154b6767d6d74b (diff)
refactor: move Console to op_crates/console (#9770)
Diffstat (limited to 'runtime/js/40_testing.js')
-rw-r--r--runtime/js/40_testing.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/runtime/js/40_testing.js b/runtime/js/40_testing.js
index eec75f133..7666fa050 100644
--- a/runtime/js/40_testing.js
+++ b/runtime/js/40_testing.js
@@ -7,7 +7,6 @@
const { setExitHandler, exit } = window.__bootstrap.os;
const { Console, inspectArgs } = window.__bootstrap.console;
const { stdout } = window.__bootstrap.files;
- const { exposeForTest } = window.__bootstrap.internals;
const { metrics } = window.__bootstrap.metrics;
const { assert } = window.__bootstrap.util;
@@ -227,8 +226,6 @@ finishing test case.`;
}
}
- exposeForTest("reportToConsole", reportToConsole);
-
// TODO(bartlomieju): already implements AsyncGenerator<RunTestsMessage>, but add as "implements to class"
// TODO(bartlomieju): implements PromiseLike<RunTestsEndResult>
class TestRunner {
@@ -327,8 +324,6 @@ finishing test case.`;
};
}
- exposeForTest("createFilterFn", createFilterFn);
-
async function runTests({
exitOnFail = true,
failFast = false,
@@ -372,7 +367,12 @@ finishing test case.`;
return endMsg;
}
- exposeForTest("runTests", runTests);
+ window.__bootstrap.internals = {
+ ...window.__bootstrap.internals ?? {},
+ reportToConsole,
+ createFilterFn,
+ runTests,
+ };
window.__bootstrap.testing = {
test,