Commit e5fa43bb authored by Farid Neshat's avatar Farid Neshat

Add a failing test for reversely written dates

parent 2ec9a0ac
......@@ -99,6 +99,16 @@ describe('Request', function() {
end: new Date(new Date('29 Dec 2018') - 1),
});
});
it.skip('Should work with dates written in reverse', function () {
// This is an issue with the date parsing library.
// Either we have to detect it(how hard could it be), hope it's fixed in the library,
// because I can't fix it!
// Or try a different library. Like the one TJ made
expect(script.parseArgs('from 19/12/2018 to 28/12/2018')).to.be.eql({
start: new Date('19 Dec 2018'),
end: new Date(new Date('28 Dec 2018') - 1),
});
});
});
describe('Normalizing Arguments', function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment