runapptests - Fix logging for asserting a value
parent
ead2a9449e
commit
4385d4b85c
|
|
@ -126,7 +126,7 @@ function assertArray(step){
|
||||||
}
|
}
|
||||||
|
|
||||||
function assertValue(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;
|
let isOK;
|
||||||
switch (step.is.toLowerCase()){
|
switch (step.is.toLowerCase()){
|
||||||
case "truthy": isOK = getValue(`!!${step.js}`); break;
|
case "truthy": isOK = getValue(`!!${step.js}`); break;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue