فهرست منبع

Merge branch 'master' of https://github.com/r-springer/fullcalendar into next-release

Adam Shaw 9 سال پیش
والد
کامیت
b19f676c0e
1فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  1. 5 0
      tests/automated/formatRange.js

+ 5 - 0
tests/automated/formatRange.js

@@ -62,6 +62,11 @@ describe('formatRange', function() {
 		expect(s).toEqual('January 1st 2014');
 	});
 
+	it('outputs the single week number when dates have the same week and format string is week', function() {
+		var s = $.fullCalendar.formatRange('2014-01-01', '2014-01-01', 'W');
+		expect(s).toEqual('1');
+	});
+
 	it('uses a custom separator', function() {
 		var s = $.fullCalendar.formatRange(
 			'2014-01-01T06:00:00',