diff --git a/test/core/js/modules/form_panel.js.js b/test/core/js/modules/form_panel.js.js index be4c4ad8e66402adedf8c386ff086be4d7cb7955..a810fb8711f14bc3b3637297c9f937884022fc15 100644 --- a/test/core/js/modules/form_panel.js.js +++ b/test/core/js/modules/form_panel.js.js @@ -55,9 +55,18 @@ QUnit.test("create_show_form_callback ", function (assert) { help: help_text, }, ], }; - const cb = form_panel.create_show_form_callback( panel_id, title, csv_form_config); + const cb = form_panel.create_show_form_callback(panel_id, title, csv_form_config); assert.equal(typeof cb, "function", "function created"); cb() + + const creator = function() { + return form_elements.make_form(csv_form_config); + } + const cb2 = form_panel.create_show_form_callback( + panel_id, title, undefined, creator + ); + assert.equal(typeof cb2, "function", "function created"); + cb2() });