diff --git a/bin/runapptests.js b/bin/runapptests.js index faf2384c7..5b32e3921 100755 --- a/bin/runapptests.js +++ b/bin/runapptests.js @@ -126,7 +126,7 @@ function assertArray(step){ } function assertValue(step){ - console.log("> ASSERT " + `\`${step.js}\``, "IS", step.is.toUpperCase(), step.to ? "TO " + `\`${step.js}\`` : "", step.text ? "- " + step.text : ""); + console.log("> ASSERT " + `\`${step.js}\``, "IS", step.is.toUpperCase() + (step.to !== undefined ? " TO " + `\`${step.to}\`` : ""), step.text ? "- " + step.text : ""); let isOK; switch (step.is.toLowerCase()){ case "truthy": isOK = getValue(`!!${step.js}`); break;