Tell us what’s happening:
Describe your issue in detail here.
I have started my backend projects. Am currently doing the timestamp microservice project and even though its working am not passing the tests.
If it is not passing the tests, then it is not “working”, by definition. “Working” doesn’t mean it does what you think it should do, but doing what the specs say it should do.
Taking a look at the test cases, let’s look at this one:
A request to /api/1451001600000 should return { unix: 1451001600000, utc: "Fri, 25 Dec 2015 00:00:00 GMT" }
If I open the web dev tools and look at the network tab, and run the tests, I can see what is happening:
Yes, of course I understood. But my point was to change your focus. The specs are what matter. That has a hard lesson to learn for me at work - it didn’t matter what I thought it should be, it mattered what the specs were, the user stories, whatever. That should be the focus.