Problem with the unit test on Advanced Node & Express Challenge #09?

Tell us what’s happening:

On the challenge “Creating New Middleware”, I’m running into a unit test failing even though the functionality of the app is working. Not sure what I’m doing wrong.

The test says: “A Get request to /profile should correctly redirect to / since we are not authenticated.”. When I go to the URL of the website and submit a Get request to /profile, I get correctly redirected.

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36.

Challenge: Creating New Middleware, Advanced Node & Express.

Link to the challenge:

Yes this is a problem with the testing. You will find this solution in different forum posts.

Try changing title: 'Hello' to title: 'Home Page" for the ‘/’ route.