mixmark-io / turndown

🛏 An HTML to Markdown converter written in JavaScript
https://mixmark-io.github.io/turndown
MIT License
8.52k stars 864 forks source link

Unit-testing internal functions #430

Closed martincizek closed 1 year ago

martincizek commented 1 year ago

As a developer, I need to write unit tests of some functionalities that is hard-to-test using the public API.

For now, I'm going to try a monkey-patching lib intended for unit testing. There might be a better solution if/when turndown is refactored.