test: add unit + integration tests for tf-docs (8 passing)

This commit is contained in:
“Naeel”
2026-09-02 15:10:48 +03:00
parent a71eff8845
commit 69460e9652
2 changed files with 130 additions and 2 deletions
+13 -2
View File
@@ -125,6 +125,17 @@ const server = http.createServer((req, res) => {
</html>`);
});
server.listen(PORT, () => {
if (require.main === module) {
server.listen(PORT, () => {
console.log(`[${SERVICE}] listening on :${PORT} (version ${VERSION})`);
});
});
}
module.exports = {
getDocsCandidates,
contentTypeFor,
health,
docsHandler,
server,
s3,
};