node tests: Add test_all() wrapper for widgetize.

I also move around a couple set_global/mock_esm
calls.
This commit is contained in:
Steve Howell
2021-03-15 15:33:31 +00:00
committed by Steve Howell
parent 09bad82131
commit d7d357f61e
2 changed files with 25 additions and 6 deletions

View File

@@ -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);