fix test index

This commit is contained in:
carson
2020-05-22 19:59:06 -07:00
parent 50ac54b9de
commit e0a8b2e9a9
2 changed files with 3 additions and 2 deletions

View File

@@ -16,7 +16,9 @@ fs.copySync("src/htmx.js", "www/js/htmx.js");
var testHTML = "<html><body style='font-family: sans-serif'><h1>HTMX TESTS</h1><ul>\n"
fs.readdirSync(testRoot).reverse().forEach(function(file){
testHTML += "<li><a href='/test/" + file + "/test'>" + file + "</a>\n"
if (file !== "index.html") {
testHTML += "<li><a href='/test/" + file + "/test'>" + file + "</a>\n";
}
});
testHTML += "</ul></body>"
fs.writeFileSync(testRoot + "/index.html", testHTML);