-
-
Notifications
You must be signed in to change notification settings - Fork 286
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
how to use plenary to unit test #48
Comments
hi it is not my issue |
That's not how |
@tjdevries You can get full code here. https://github.com/windwp/nvim-autopairs/blob/testfeedkeys/tests/pairs_spec.lua Thank |
@windwp I don't know if you mean to ask about the same issue I had (how to write tests that insert text, then check for a result) but if that's what you're asking about, it took me about an hour or two to figure out the missing piece was passing Example is here via this helper. Still can't figure out how to get empty buffers so that I don't have to do cleanup myself, but yeah I think that's maybe what you're after? |
Thank @Julian |
i want to use plenary to do some unit test but i got a some issue with automatic feedkeys function.
how do i test the text result after i use feedkeys function?
Thank
The text was updated successfully, but these errors were encountered: