User story says:
If the date string is invalid the api returns a JSON having the structure
{"unix": null, "utc" : "Invalid Date" }
. It is what you get from the date manipulation functions used above.
Following the above instructions, this test does not pass:
“It should return the expected error message for an invalid date”
But, returning this does allow the test to pass:
{“error”:“Invalid Date”}
Which I figured out only from accessing the example app at:
https://curse-arrow.glitch.me/api/timestamp/asd
Please consider adjusting the test to match the instructions, or, adjusting the instructions to match the test.
Cheers,
Justin