Everytime I enter unix code to test my api it doesn’t work. It returns “unix: null”.
So that doesnt pass the automatic checking. Same with the last two tests for the timestamp. It fails all 3 of these and I dont know why. I would very much appreciate help. Here is my code incase it is needed:
First, your link is to the live project and not the code. Share the link to the code. If you add code directly, use the</> button in the post editor to put it in code blocks.
Second, check the browser console and server console for errors. When I ran the tests against your project, I saw errors in my browser console like
which only covers the tests with parameters, again indicating that the tests have no /api to hit when there are no parameters. Your problems with the unix timestamp are here
which means you are not checking for a string of numbers that won’t parse as a valid date but will parse as a unix timestamp properly and are hitting your error return.