config tests added,

titles tests added,
.env file support added with dotenv,
README.md file updated for .evn file support,
database lost connection bug crash fixed,
session server run_session long timeout bug fixed,
links module added,
webrtc_proc json arguments added,
app_proc stdout and stderr support added,
infinity app_proc spawn freeze bug fixed
This commit is contained in:
C
2023-01-30 17:55:15 +05:00
parent e3e2cc97aa
commit dae22f393c
14 changed files with 3222 additions and 26 deletions
+24
View File
@@ -0,0 +1,24 @@
const fs = require('fs')
const titles = require('../titles')
const path_not_exists = (message) => {
console.error('path not exists (titles.json): \n', message)
}
const test_titles = () => {
var titles_pass = true
titles.forEach(title => {
if (!fs.existsSync(title.path)) {
titles_pass = false
path_not_exists(`\ttitle: ${title.title}, path: ${title.path}`)
}
})
return titles_pass
}
module.exports = {
test_titles
}