Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <mike.gerwitz@rtspecialty.com>2018-03-07 13:57:18 -0500
committerMike Gerwitz <mike.gerwitz@rtspecialty.com>2018-03-07 14:12:48 -0500
commitf83dfd0027720bbd86b807e533309c981dcd14db (patch)
tree63e463c7a3f02116a73ded290a9de4081088deec
parentc33adee21d9812ec131fb4e7b2bf34f93b505285 (diff)
downloadliza-3.5.1.tar.gz
liza-3.5.1.tar.bz2
liza-3.5.1.zip
GeneralStepUiTest: Fix failing test case in newer version of Nodev3.5.1
An error was being thrown outside the stack of the actual test, which apparently was never noticed until more recent versions of node. We're still on a pretty ancient version for local development. :x * test/ui/step/GeneralStepUiTest.js (createElementStyler)[getAnswerElementByName]: Properly return array for stub jQuery element.
-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()