Commit Graph

22 Commits

Author SHA1 Message Date
Reto
d4cc2dd361
Refactor config out of Helper (#4558)
* Remove config from Helper

Helper is the usual util grab bag of useful stuff.
Somehow the config ended up there historically but
structurally that doesn't make any sense.

* Add cert folder to prettier ignore file
2022-05-01 12:12:39 -07:00
Val Lorentz
bd2a6cc5be test/models/network.js: Add a simple test for STS policies 2022-02-13 14:42:01 +01:00
Mateusz Hajder
af236dd280
Add the default IRC network for tests 2021-05-26 13:41:33 +02:00
Pavel Djundik
f8f692af05 Generate client certificates and automatically do SASL EXTERNAL 2020-04-15 10:56:04 +03:00
MiniDigger
6f8364b1dd Print package versions on startup 2019-11-06 18:02:28 +01:00
Alistair McKinlay
ab8d819193 Set up Prettier on md, html, json, and yaml 2019-07-17 10:22:30 +01:00
Pavel Djundik
472d618033 Remove log from global 2018-06-15 23:31:06 +03:00
Pavel Djundik
941849eaa8 Add message indexing 2018-03-08 20:23:29 +02:00
Pavel Djundik
51684f7a2a Switch default home location to ~/.thelounge and remove support of .lounge_home 2018-02-19 20:43:53 +02:00
Pavel Djundik
a3e448acf5 Enable no-var rule
Fixes #1961
2018-02-19 19:49:39 +02:00
Jérémie Astori
2c570fa9ef
Load packages from package.json, fix loading thelounge metadata from the wrong file, add tests 2018-02-13 01:06:31 -05:00
Jérémie Astori
c2243ed7b4
Remove dead code in tests, and fix a link test
I used `npm run coverage` while *not* excluding the test folder to detect dead code in our test folder, it is actually pretty useful to do so (as a one-shot, not to do that in our config).
Only remaining unreached path is L40 in `test/plugins/auth/ldap.js`, but it does seem to me that it might be useful in case of failures, so I preferred to leave it there.
2017-12-09 18:56:05 -05:00
Pavel Djundik
7c9eedb820 Add hardcoded vapid key and a test for it
Hopefully fixes #1569
2017-09-25 11:46:15 +03:00
Jérémie Astori
b8399471b3
Enable ESLint no-console rule to avoid future mistakes 2017-09-17 21:50:21 -04:00
Jérémie Astori
cdbefd3905
Make The Lounge private mode by default 2017-08-23 13:21:14 -04:00
Pavel Djundik
45d974a0c3 Ignore vapid.json generated during tests 2017-08-23 12:36:35 +03:00
Pavel Djundik
f65a5a8c89 Add web server tests 2016-12-28 03:31:33 -05:00
Jérémie Astori
caa46042bf Enforce strict mode across all JS files with ESLint
Several ES6 additions are only available in strict mode. Example:
> SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode

Strict mode was also enabled in a few of our files already, and it is a good thing to have anyway.
2016-10-09 15:14:02 -04:00
Pavel Djundik
d6f2def825 Do not override HOME env in tests 2016-05-15 17:02:53 -04:00
Maxime Poulin
164b983f99
Always run all tests and test them each individually on travis 2016-05-08 02:24:10 -04:00
Jérémie Astori
75040e07c6 Rename the fixture folder, forgotten while switching to new project name 2016-02-12 04:52:32 +00:00
William Boman
181b78a02f test: add fixtures directory 2015-10-02 14:44:39 +02:00