hildjj / dohdec

Lookup and decode DNS records using DNS-over-HTTPS (DoH)
MIT License
21 stars 5 forks source link

Cli testable #24

Closed hildjj closed 3 years ago

hildjj commented 3 years ago

Refactor the CLI into a testable file in lib/cli.js, and have the binary just be a thin wrapper that does process.exit(1) on errors

Mock all of the TLS server tests so that no network is needed for testing.

hildjj commented 3 years ago

Fixes #5