Closed san650 closed 8 years ago
Thank you for this contribution.
As I look at this more I think that a better approach would be to test parse
and embed
separately. The emit just concatenates the results with some additional (reliable) escaping that need not be tested. The intermediate result between these two methods is easy to test for parse
and easy to construct for embed
. This saves having to worry about mocking $item or wiki.
Ok, sounds reasonable. I'll change the tests to test each method separately.
Thank you for your patience.
@WardCunningham I've updated the PR
Many thanks.
Fixes #13