Timestamp Microservice: Test does not match user story

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

Thank you for helping make FCC better. Bugs can be reported as GitHub Issues. Whenever reporting a bug, please check first that there isn’t already an issue for it and provide as much detail as possible.