hildjj / dohdec

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

Cli testable #24

Closed hildjj closed 2 years ago

hildjj commented 2 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 2 years ago

Fixes #5