mirror of
https://github.com/zulip/zulip.git
synced 2025-11-18 21:48:30 +00:00
node tests: Add test_all() wrapper for widgetize.
I also move around a couple set_global/mock_esm calls.
This commit is contained in:
committed by
Steve Howell
parent
09bad82131
commit
d7d357f61e
@@ -13,6 +13,10 @@ const widgets = new Map([
|
||||
|
||||
export const widget_contents = new Map();
|
||||
|
||||
export function clear_for_testing() {
|
||||
widget_contents.clear();
|
||||
}
|
||||
|
||||
function set_widget_in_message(row, widget_elem) {
|
||||
const content_holder = row.find(".message_content");
|
||||
content_holder.empty().append(widget_elem);
|
||||
|
||||
Reference in New Issue
Block a user