I’ve finally got all of my “should return” tests to pass*, but none of the “should display” tests are passing. I’ve looked at some other folks’ examples in the forum and they all do functionally the same thing I am. What’s up?
*Several of the instructions are poorly worded. They state that we should convert if the markdown character(s) are preceded by a space, but some of the tests make clear that we should NOT convert in that case, but instead if they’re preceded by a newline.
Yes, instructions #3 and #8. I was able to pass the “should return” parts of those tests with guidance from the test-fail messages, but I still have my fundamental problem.
Yes, I’ll create an issue. I’ve been wanting/needing to learn Git anyway. Here’s hoping that Git becomes part of the curriculum.
Boy, it would be nice if I were clever enough to go through the dev-tools and try to find the code to see what’s actually being tested for. But boy, am I ever not.
/doh, of course it’s a simple error on my part. That one fix made all of the tests pass.
Thanks for pointing me to the tests! Even though it wouldn’t have helped me here (dangit, it should pass!), in a future exercise, I might want to dig into the tests the way I thought I should, here. I did a little reading about assert and it appears that there are several flavors of it; it might come from one of several modules. For the purpose of working out the syntax of FCC’s particular assert, can you share which module it’s coming from?
In this case the issue was the combination of you using a global addEventListener, usually you don’t want the event on the whole page, and the tests missing a thing where the event does not trigger eventListeners on parent elements, so I opened an issue for that:
Thanks! One of the things I found frustrating in trying to debug this on my own was that in the live view, all of the tests apparently worked. And, yes, I understand that in failing to attach my listener to the correct event I was adding it to the global window. I’ve often asked AI about problems that I’ve had and this was brought up in another context. I’ve often found that asking AI a lot of questions about and in conjunction with the course materials, I’m learning more than from either approach alone.