Open srasku opened 3 years ago
Interesting question. I just ran into an issue with an ftdetect
loader and couldn't figure out how to write a test for it. If anybody finds a working example of testing if opening a file resulted in the right file type I'd love to see it.
I am writing a plugin which should allow opening files by hitting return on them similar to what Fugitive does. Is this a testable scenario?
I wrote some tests for Fugitive but the one to test opening a file doesn't work. It works if I test it manually. Am I doing something wrong?
Note that the contents I am expecting won't match but I'm getting no contents at all. This is my Vader output.