mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 23:43:43 +00:00
zjsunit: Do not run $(...) automatically.
We have generally gone away from using $(...) initialization in modules that we test with zjsunit, but there are a few remaining special cases related to our billing and portico codebases.
This commit is contained in:
committed by
Steve Howell
parent
bc8647539c
commit
fbd3669461
@@ -14,9 +14,10 @@ const dom = new JSDOM(template, {pretendToBeVisual: true});
|
||||
const document = dom.window.document;
|
||||
|
||||
mock_cjs("jquery", $);
|
||||
zrequire("../js/analytics/support");
|
||||
|
||||
run_test("scrub_realm", () => {
|
||||
zrequire("../js/analytics/support");
|
||||
$.get_initialize_function()();
|
||||
const click_handler = $("body").get_on_handler("click", ".scrub-realm-button");
|
||||
|
||||
const fake_this = $.create("fake-.scrub-realm-button");
|
||||
|
||||
Reference in New Issue
Block a user