Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config test #21

Merged
merged 6 commits into from
Dec 19, 2020
Merged

Config test #21

merged 6 commits into from
Dec 19, 2020

Conversation

aspic
Copy link
Collaborator

@aspic aspic commented Dec 16, 2020

Makes it possible to log most configuration logging to an array, and use that to verify that typescript refactor (#20) is successful.


test('log proxy settings with default config from file', () => {
let settings = []
fs.copyFileSync('settings.json.default', settingsPath, )
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This overwrites any changes to a potential "local" settings.json file. However, these test should never be run in an environment.

@@ -1,5 +1,7 @@
require('dotenv').config() // load variables from .env into the environment
require('console-stamp')(console)
const test_override_http = !process.env.OVERRIDE_USE_HTTP
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had to have some way of overwriting the use_http variable.

@Joohansson Joohansson merged commit a0d43a5 into Joohansson:master Dec 19, 2020
@aspic aspic deleted the config-test branch December 19, 2020 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants