Fix: Tests lint and src folder #138

Merged
KevinMidboe merged 27 commits from fix/tests-lint-and-src-folder into master 2022-08-20 15:41:47 +00:00

27 Commits

Author SHA1 Message Date
KevinMidboe 2b5bf08de8 Only build and publish docker container when branch master 2022-08-20 17:39:47 +02:00
KevinMidboe a24a9cd6dd Resolved merge conflicts 2022-08-20 17:37:45 +02:00
KevinMidboe 148cacb8d5 Merge branch 'master' into fix/tests-lint-and-src-folder 2022-08-20 17:24:24 +02:00
KevinMidboe 705b6cbc1c Prevent assert error when checking request status, returns success 200 2022-08-20 17:18:36 +02:00
KevinMidboe ff410194ed Updated authentication middleware to handle checks consitenctly 2022-08-20 17:17:31 +02:00
KevinMidboe 22919b3060 Pass error from tmdb api back to client as errorMessage 2022-08-20 17:08:00 +02:00
KevinMidboe 098ee95f40 Replaced all fetch alternatives from source code and package.json 2022-08-20 17:00:40 +02:00
KevinMidboe 16469ee2eb Fixed redis expire & mock implmentation 2022-08-20 16:58:41 +02:00
KevinMidboe 0bbd10c24b Use chaiHttp in asAUserIWantToRequestAMovie. 2022-08-20 16:57:55 +02:00
KevinMidboe 7e1f89e1ad Re-enable tests/system 2022-08-20 16:56:44 +02:00
KevinMidboe 3e069ea1a1 Disabled test asADeveloperIWantTheServerToStart 2022-08-20 16:56:22 +02:00
KevinMidboe 39e335423b Tests should use redis (mock) cache, not tmdb sqlite cache 2022-08-20 16:55:03 +02:00
KevinMidboe b4758040ee All api calls from tests use same chaiHttp implementation
Removes a list of fetch alternatives after being replaced by chaiHttp:
 - request
 - request-promise
 - supertest
 - supertest-as-promised
2022-08-20 16:52:34 +02:00
KevinMidboe 104b5e09fd Dockerfile copies development.example -> production.json. Simplified commands 2022-08-20 14:13:49 +02:00
KevinMidboe cacff37df3 Chai modules defined in package.json & resolved linting errors 2022-08-20 14:01:21 +02:00
KevinMidboe d58f9751f4 Updated test configuration w/ missing keys 2022-08-20 13:56:37 +02:00
KevinMidboe 7b8ca68fc8 Updated test commands to omit system tests, no exit code 2022-08-20 13:56:11 +02:00
KevinMidboe 03de831d13 Updated mocha & nyc. Removed production config. Updated gitignore 2022-08-20 13:08:57 +02:00
KevinMidboe a6d808daa6 Updated mocha & nyc, resolved all lint issues in tests/ 2022-08-20 13:05:24 +02:00
KevinMidboe 9708a6cff9 Updated all import statements to be relative 2022-08-20 13:01:02 +02:00
KevinMidboe f1eaf3e019 Set 2 eslint rules as warning temporarly 2022-08-19 16:05:16 +02:00
KevinMidboe c533d8868a Fixed eslint errors & improved a lot of error handling 2022-08-19 16:03:49 +02:00
KevinMidboe b1d959389d Started linting source files 2022-08-19 13:47:08 +02:00
KevinMidboe 64dbec1f14 eslint uses ecmaversion 2020 & allow empty catch rule 2022-08-19 13:45:50 +02:00
KevinMidboe a98797088a Linted and some consistency refactor on middleware 2022-08-19 11:22:29 +02:00
KevinMidboe e8ad9367c9 fix: updated plex_userid to camelcase 2022-08-19 10:49:58 +02:00
KevinMidboe 2aace85418 Automaticly fixable eslint issues, mostly 3 -> 2 space indentation 2022-08-19 10:41:44 +02:00