thelounge/src/command-line
Jérémie Astori b90c224a99
Define a raw logger to avoid using console.log, use it in extra help for environment variables, and add a test for this
This has multiple benefits:

- Respects the "Do not mock what you do not own" principle, instead we mock `log.raw` when necessary
- Lets us not re-assign `console.log`, which breaks as Mocha uses `console.log` as well
- Save and restore initial `log.raw` in test hooks (before/after), otherwise this would break Mocha/Chai
2017-12-11 23:48:51 -05:00
..
users Do not load user commands or display them on --help if public mode or using LDAP 2017-12-09 01:51:08 -05:00
config.js Only use helpers and not shared variables around path helpers 2017-12-07 23:02:32 -05:00
index.js Do not load user commands or display them on --help if public mode or using LDAP 2017-12-09 01:51:08 -05:00
install.js Only use helpers and not shared variables around path helpers 2017-12-07 23:02:32 -05:00
start.js Only use helpers and not shared variables around path helpers 2017-12-07 23:02:32 -05:00
utils.js Define a raw logger to avoid using console.log, use it in extra help for environment variables, and add a test for this 2017-12-11 23:48:51 -05:00