Thank you for the very useful testing framework! I am relying on it to test some complex frontend code.
I have one issue with the links to suites. To the right of every test Mocha displays a link to a page that runs just that test (a triangle within a circle). The URL is incorrect though. E.g. if I run the /models tests and then want to test a Book model it will link to /models/book_spec/models/?grep=Book. Instead it should be /models/book_spec/?grep=Book. I think it has to do with the grepString variable in konacha/parent.js file. Besides storing the ?grep=Book part it also has the current path: /models/?grep=Book. This part needs to be filtered out. Adding
Hello.
Thank you for the very useful testing framework! I am relying on it to test some complex frontend code.
I have one issue with the links to suites. To the right of every test Mocha displays a link to a page that runs just that test (a triangle within a circle). The URL is incorrect though. E.g. if I run the
/models
tests and then want to test a Book model it will link to/models/book_spec/models/?grep=Book
. Instead it should be/models/book_spec/?grep=Book
. I think it has to do with thegrepString
variable inkonacha/parent.js
file. Besides storing the?grep=Book
part it also has the current path:/models/?grep=Book
. This part needs to be filtered out. Addingfixes the problem for me.
Am I the only one with this problem? If not should I make a PR?
Thank you!