Skip to content

Commit

Permalink
Fixed a test that would fail sometimes
Browse files Browse the repository at this point in the history
If the date was the 31st and there were fewer than 31 days in the
current month, the test of isoDate would fail.
  • Loading branch information
halindrome committed Jul 31, 2015
1 parent ea757e7 commit cdebcc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/spec/core/utils-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ describe("Core - Utils", function () {
expect(utils.isoDate("2013-06-25")).toMatch(/2013-06-2[45]T/) ;
var d = new Date();
d.setFullYear(2013);
d.setMonth(5);
d.setDate(25);
d.setMonth(8);
d.setHours(0);
d.setMinutes(0);
d.setSeconds(0);
expect(utils.isoDate(d)).toMatch(/2013-06-2[45]T/);
expect(utils.isoDate(d)).toMatch(/2013-09-2[45]T/);
});
});

Expand Down

0 comments on commit cdebcc6

Please sign in to comment.