Skip to content

Commit

Permalink
mysql format test
Browse files Browse the repository at this point in the history
  • Loading branch information
Barta Akos committed Feb 3, 2014
1 parent 7ab49df commit da8f851
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/countdown_test.js
Expand Up @@ -241,6 +241,13 @@ asyncTest('cast YYYY/MM/DD hh:mm:ss', 1, function() {
});
});

asyncTest('cast YYYY-MM-DD hh:mm:ss', 1, function() {
$dom.countdown('2020-10-20 12:34:56').on('update.countdown', function(event) {
ok(event.finalDate.toString().match(/Oct 20 2020 12:34:56/));
start();
});
});

asyncTest('cast YYYY/MM/DD', 1, function() {
$dom.countdown('2020/10/20').on('update.countdown', function(event) {
ok(event.finalDate.toString().match(/Oct 20 2020 00:00:00/));
Expand Down

0 comments on commit da8f851

Please sign in to comment.