tramsform

master
Charles Iliya Krempeaux 2023-11-17 09:34:43 -08:00
parent 3acee0e574
commit 27f6521ccb
2 changed files with 7 additions and 7 deletions

View File

@ -94,7 +94,7 @@ function transform_link(rootElement) {
ref = ref.toUpperCase().replaceAll(" ", "_") ref = ref.toUpperCase().replaceAll(" ", "_")
break; break;
default: default:
logerror("unknow tramsform:", transform) logerror("unknow transform:", transform)
// Nothing here. // Nothing here.
} }
} }

View File

@ -311,7 +311,7 @@ function testTransform() {
tests.forEach(function(test, testNumber){ tests.forEach(function(test, testNumber){
if (undefined === ziba.transform) { if (undefined === ziba.transform) {
console.error("[test-tramsform] For test", testNumber, "ziba.transform is undefined.") console.error("[test-transform] For test", testNumber, "ziba.transform is undefined.")
return return
} }
@ -326,13 +326,13 @@ function testTransform() {
const actual = element.innerHTML const actual = element.innerHTML
if (expected !== actual) { if (expected !== actual) {
console.error("[test-tramsform] For test №", testNumber, "the actual value is not what was expected.") console.error("[test-transform] For test №", testNumber, "the actual value is not what was expected.")
console.log("[test-tramsform] EXPECTED:", JSON.stringify(expected)) console.log("[test-transform] EXPECTED:", JSON.stringify(expected))
console.log("[test-tramsform] ACTUAL: ", JSON.stringify(actual)) console.log("[test-transform] ACTUAL: ", JSON.stringify(actual))
console.log("[test-tramsform] HTML: ", JSON.stringify(html)) console.log("[test-transform] HTML: ", JSON.stringify(html))
return return
} }
console.log("[test-tramsform] Test №", testNumber, "passed.") console.log("[test-transform] Test №", testNumber, "passed.")
}) })
} }