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:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user