Closed harsimranb closed 9 years ago
Thanks, looks good!
Could you please also add a test to tests/moment.parseFormat-test.js
? You can run tests with grunt test
. If you haven't yet, you need to install grunt with npm install -g grunt-cli
and install the npm dependencies with npm install
before.
Tests could look like this:
// https://github.com/gr2m/moment.parseFormat/issues/20
equal( moment.parseFormat('10/8/2014 5:08:35 PM'), 'M/D/YYYY h:mm:ss A', '#20 10/8/2014 5:08:35 PM → M/D/YYYY h:mm:ss A' );
equal( moment.parseFormat('10/8/2014 5:08:35am'), 'M/D/YYYY h:mm:ssa', '#20 10/8/2014 5:08:35 am → M/D/YYYY h:mm:ssa' );
merged via bd9a73d, cheers :+1: