From d18959b1b6cf3775e9830b811626bdd0c639c7bc Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Fri, 20 Sep 2024 16:19:52 -0700 Subject: [PATCH] tests: Remove unused sloppy_$ flag. Signed-off-by: Anders Kaseorg --- web/tests/compose_validate.test.js | 1 - web/tests/lib/test.js | 8 ++------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/web/tests/compose_validate.test.js b/web/tests/compose_validate.test.js index febe20ffcd..3b0664ed88 100644 --- a/web/tests/compose_validate.test.js +++ b/web/tests/compose_validate.test.js @@ -90,7 +90,6 @@ const admin = { user_groups.initialize({realm_user_groups: [nobody, everyone, admin]}); function test_ui(label, f) { - // The sloppy_$ flag lets us reuse setup from prior tests. run_test(label, (helpers) => { $("textarea#compose-textarea").val("some message"); f(helpers); diff --git a/web/tests/lib/test.js b/web/tests/lib/test.js index af86996cce..e76efe30bb 100644 --- a/web/tests/lib/test.js +++ b/web/tests/lib/test.js @@ -21,17 +21,13 @@ exports.noop = () => {}; exports.suite = []; -async function execute_test(label, f, opts) { - const {sloppy_$} = opts || {}; - +async function execute_test(label, f) { /* istanbul ignore if */ if (verbose) { console.info(" test: " + label); } - if (!sloppy_$ && $.clear_all_elements) { - $.clear_all_elements(); - } + $.clear_all_elements(); zpage_billing_params.reset(); zpage_params.reset();