runapptests - Fix logging for asserting a value

pull/3413/head
Martin Boonk 2024-05-11 23:38:54 +02:00
parent ead2a9449e
commit 4385d4b85c
1 changed files with 1 additions and 1 deletions

View File

@ -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;