Is there a way to unit test the variables in JavaScript code.
I don't know how to mock response.content.asXML etc work from within a unit test. Is there a way to mock these variables.
I have been able to mock context.getVariable() and context.setVariable using mocha framework
Solved! Go to Solution.
I would use a separate file with mock response and pass it to the mocha script to validate against some tests. Would that work ?