Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/ui/step/GeneralStepUiTest.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/ui/step/GeneralStepUiTest.js b/test/ui/step/GeneralStepUiTest.js
index 31130e3..33b78d5 100644
--- a/test/ui/step/GeneralStepUiTest.js
+++ b/test/ui/step/GeneralStepUiTest.js
@@ -329,12 +329,14 @@ function createElementStyler( style_callback )
getAnswerElementByName: function()
{
// jQuery element
- return {
+ const $element = [ {
attributes: [],
- length: 1,
+ } ];
- text: function() {},
- }
+ $element.length = 1;
+ $element.text = () => {};
+
+ return $element;
},
getProperIndex: function()