adding unit test for rendering home page

This commit is contained in:
SinusFox
2024-10-11 11:33:21 +02:00
parent d92236e6ef
commit f9a71d5042
8 changed files with 4351 additions and 26 deletions
+3 -3
View File
@@ -8,7 +8,7 @@ import { start } from "repl";
import text from "./lang"
// custom log so we can append the output dynamically
function customLog(input: string) {
export function customLog(input: string) {
// get language
const lang = (document.getElementById('language_current') as HTMLSelectElement)?.value;
@@ -25,14 +25,14 @@ function customLog(input: string) {
}
}
function customLogClear() {
export function customLogClear() {
const outElement = document.getElementById('out');
if (outElement) {
outElement.innerHTML = "";
}
}
function getTranslation(input: string) {
export function getTranslation(input: string) {
// get language
const lang = (document.getElementById('language_current') as HTMLSelectElement)?.value;