The script must parse whatever the pipeline holds. The sequence is written
into the script as bare code and the session id inside quotes, and both come
from the SequenceElement, so every pipeline here has one. A pipeline without
a SequenceElement renders sequence 1 and an empty session id, which
test_javascriptbuilder_no_sequence.py covers.
The script is checked with "node --check", which needs Node on the path.
Every GitHub hosted runner has it.
| _render |
( |
| evidence = None, |
|
|
| minify = False, |
|
|
| sequence_element = True ) |
|
protected |
Render the script. The JSON builder fails without a sequence number,
so the pipeline always has the SequenceElement.