Right answer isn't passing my test

Tell us what’s happening: My test keeps failing even though it returns the right response. I am using:

const message = "Hello json";
app.get("/json", (req, res) => {
  res.json({"message": process.env.MESSAGE_STYLE === "uppercase" ? message.toUpperCase() : message})
})

Your project link(s)

solution: https://boilerplate-express-1.sekeidesign.repl.co

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Safari/605.1.15.

Challenge: Use the .env File

Link to the challenge:

Hello there,

There is a known issue with the lesson, which could be your problem: Use the .env File - Issue - freeCodeCamp Support - The freeCodeCamp Forum

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.