Files
EgorSuv dae22f393c 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
2023-01-30 17:55:15 +05:00

24 lines
485 B
JavaScript

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
}