test.expect(7);
test.equal(moment([2011]).utc().diff([2010], 'years'), 1, "year diff");
- test.equal(moment([2010, 2]).utc().diff([2010], 'months'), 2, "month diff");
+ test.equal(moment([2010, 2, 2]).utc().diff([2010, 0, 2], 'months'), 2, "month diff");
test.equal(moment([2010, 0, 4]).utc().diff([2010], 'days'), 3, "day diff");
test.equal(moment([2010, 0, 22]).utc().diff([2010], 'weeks'), 3, "week diff");
test.equal(moment([2010, 0, 1, 4]).utc().diff([2010], 'hours'), 4, "hour diff");