Open kraman opened 9 years ago
/cc @rmg
Looking into this, it seems that using moment()
for parsing arbitrary dates is actually no better than just using Date.parse()
.
In the processes of switching to a combination of Date.parse()
and isNaN()
checks on the result, I happened to discovered a bug.
Added comments on the initial PR - easier to reference this issue there and have them show up here than generate links to the relevant lines.
The tests are passing on CI, but this is in the console:
edit: replaced deprecation with output from a non-coverage run of
npm test