UNPKG

create-smktest

Version:

Smoketest suites gerentator in jest format

22 lines (21 loc) 606 B
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <h1>HELLO REPORT</h1> <div id="testConfig"></div> <script> fetch("dataReport.json") .then(response => response.json()) .then(data=>{ let htmlCode = `<h1>${data.config.context}</h1>` document.querySelector("#testConfig").insertAdjacentHTML("afterbegin",htmlCode) }) </script> </body> </html>