Hello guys!
I have problem with this following part of my code
app.get("/api/timestamp", (req, res)=>{
res.json({unix:new Date().getTime(), utc:new Date().toUTCString()});
});
I don’t know why i did wrong but the test always fails at this part
// running tests
An empty date parameter should return the current time in a JSON object with a unix key
An empty date parameter should return the current time in a JSON object with a utc key
// tests completed
I been thinking about it a while and didn’t still catch anything. Help me out! Thanks in advance!
Link: https://repl.it/@Birkhoff/boilerplate-project-timestamp#server.js