summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorludovic <ludovic.pelle@gmail.com>2011-04-22 14:49:40 +0200
committerludovic <ludovic.pelle@gmail.com>2011-05-02 12:15:09 +0200
commit0c30d5e7c8afe3dc4b59f73a5612b2626e14e96b (patch)
tree510f92ca6ea0acc06174a8be617e183b8e09221c
parente9e7331f55384d6e40c51d1a4c06f356d93939cb (diff)
downloadjquery-week-calendar-0c30d5e7c8afe3dc4b59f73a5612b2626e14e96b.zip
jquery-week-calendar-0c30d5e7c8afe3dc4b59f73a5612b2626e14e96b.tar.gz
jquery-week-calendar-0c30d5e7c8afe3dc4b59f73a5612b2626e14e96b.tar.bz2
test for #49
-rw-r--r--test/tests.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/tests.js b/test/tests.js
index dbffb03..b50b4ae 100644
--- a/test/tests.js
+++ b/test/tests.js
@@ -319,6 +319,7 @@ test("issue #49: wrong calculation of DateLastMilliOfWeek", function() {
equals(_curDate.toString(), (new Date('Apr 24 2011')).toString(), '_dateLastDayOfWeek returns sunday');
_curDate = _dateLastMilliOfWeek(new Date('Apr 21 2011'));
+
ok(_curDate instanceof Date, '_dateLastMilliOfWeek returns a date');
equals(_curDate.toString(), (new Date('Apr 25 2011 00:00:00')).toString(), '_dateLastMilliOfWeek returns next monday midnight');