zulip/frontend_tests/zjsunit
Steve Howell ac69450681 zjsunit: Clear $ elements in run_test.
We now call $.clear_all_elements at the top
of run_test.

We have to exempt two modules from the new regime:

    compose
    settings_user_groups

Also, if modules do set_global("$", ...) we don't
try to call the non-existent function.

It's possible we'll want to move to something like
this, but we might want to clean up the two
sloppy_$ modules first:

    // AVOID THIS:
    // const $ = require("zjquery")

    run_test("test widget", ({override, $}) => {
        override(foo, "bar", ...);
        $.create(...);
        // do stuff
    });
2021-02-23 07:55:43 -05:00
..
handlebars.js zjsunit: Deglobalize handlebars. 2020-12-01 07:14:00 -05:00
i18n.js eslint: Fix unicorn/prefer-negative-index. 2020-10-07 16:00:33 -07:00
index.js zjsunit: Use clear_zulip_refs as the main way to undo zrequire. 2021-02-22 10:53:49 -08:00
markdown_assert.js eslint: Fix unicorn/no-array-for-each. 2021-01-25 14:53:19 -08:00
mdiff.js eslint: Fix unicorn/no-array-callback-reference. 2021-01-25 14:53:19 -08:00
namespace.js zjsunit: Restore missing fields correctly in with_field. 2021-02-22 20:21:41 -08:00
stub.js zjsunit: Remove with_stub helper. 2021-02-13 06:48:59 -05:00
test.js zjsunit: Clear $ elements in run_test. 2021-02-23 07:55:43 -05:00
zblueslip.js blueslip: Pass through the return value in measure_time. 2021-02-04 09:11:04 -05:00
zjquery.js lightbox: Export method for testing purposes. 2021-02-22 12:38:07 -05:00