Basic Node and Express - Use the .env File - Still Failing Tests

Tell us what’s happening:

In the .env file challenge, although my code produces the right result, as you can confirm here it is failing the tests. Just forked a day or two ago and passed all tests up to this one. (Note: am actively working on this repl so it may periodically fail. I confirmed I got the all caps message before posting.)

Your code so far

var express = require('express');
var app = express();
//console.log("Hello World");
console.log(__dirname + '/views/index.html');

app.use(express.static(__dirname + '/public'));

app.get('/', function(req, res) {
  res.send('Hello Express');

app.get('/', (req, res) => {
  res.sendFile(__dirname + '/views/index.html')

app.get('/json', (req, res) => {
  /* how to better handle cap chang?  before or after fctn?*/
  message = "Hello Json";
  if (process.env.MESSAGE_STYLE === 'uppercase') {
    res.json({"message": message.toUpperCase()}); 
  } else {
  res.json({"message": message})

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0.

Challenge: Use the .env File

Link to the challenge:

Hello there, the message has to be exactly the same. I suggest you go to the previous lesson and have a quick look again at the original text you should be sending.

Hope this helps