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: