Commit Graph

14 Commits

Author SHA1 Message Date
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