Tell us what’s happening:
I’m kinda certain that I’ve done all I’m suppose to do but my /json endpoint is not responding , it did once and did what the test asked but did not pass the test then suddenly the /json endpoint stopped responding, just kept loading .
First is the location of the line of code that reads the env variable is not inside the route handler. If you look at the instructions given again they said:
Note that you must read the value of process.env.MESSAGE_STYLEinside the route handler, not outside of it, due to the way our tests run.
Then the actual handling of the if statement when mySecret is uppercase
You set the value of the message in the note object but then nothing happens after that.
(there’s some code missing to actually return the result)