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

HTML insertion does not work #1

Closed
mokkabonna opened this issue Aug 5, 2013 · 1 comment
Closed

HTML insertion does not work #1

mokkabonna opened this issue Aug 5, 2013 · 1 comment

Comments

@mokkabonna
Copy link

As you already mentioned in the readme. Just wanted to confirm it. Might be possible to do this client side with function toString method. Might have a stab at it.

@mokkabonna
Copy link
Author

I managed to create a (for me) working implementation of the HTML doc feature client side. I already use sinon sandbox and also does some other wrapping in a helper.js file. So I have not implemented it in the adaptor itself. However here is the code in a gist if someone want to replicate it in this project or on their own. https://gist.github.com/mokkabonna/6163981

The core part is the createFunc function that wraps the test and setup and first parses the function and strips all the HTML doc comments and inserts the HTML as expected. Then it runs the actual test/setUp function. Might not work for all your tests if you for instance don't have the HTML doc comments in the setup function, but in a subfunction or similar. But for most use cases it should be fine. If you have problems understanding I'm willing to help.

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

No branches or pull requests

1 participant