Use the .env exercise fails on Fcc Node & Express

Hello i am tring to do the “APIs and Microservices” i have got to the using .env

Here is the code i am using
app.get(’/’,function(req , res){
var response=null;
if(process.env.MESSAGE_STYLE===“uppercase”)
{
response=“Hello World”.toUpperCase()
} else{
response=“Hello World”
}
res.json({“message”:response})
})

The answer tests says am wrong but when i try to test nothing is wrong. Any help please!
Challenge: Use the .env File

Link to the challenge:

Hey @chrisngure2599 ,

Unfortunately this is a known issue and is currently being fixed, here’s a reply I made to a similar question:

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