From 0770449c938cdd0edbadaf1e87e460b21fc1b4ef Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Fri, 12 Mar 2021 21:23:59 +0100 Subject: refactor: move Console to op_crates/console (#9770) --- runtime/js/40_testing.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'runtime/js/40_testing.js') 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, but add as "implements to class" // TODO(bartlomieju): implements PromiseLike 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, -- cgit v1.2.3