mirror of
https://github.com/wassname/fullcalendar.git
synced 2026-06-27 16:10:13 +08:00
upgrade to moment 2.6, test changes, bugfix
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@
|
||||
"name": "fullcalendar",
|
||||
"version": "2.0.0-beta2",
|
||||
"devDependencies": {
|
||||
"moment": "2.5.1",
|
||||
"moment": "2.6.0",
|
||||
"jquery": "~1.10.2",
|
||||
"jquery-ui": "~1.10.3",
|
||||
"jquery-simulate": "*",
|
||||
|
||||
@@ -39,6 +39,7 @@ function makeMoment(args, parseUTC, parseZone) {
|
||||
if (ambigDateOfMonthRegex.test(input)) {
|
||||
// accept strings like '2014-05', but convert to the first of the month
|
||||
input += '-01';
|
||||
args = [ input ]; // for when pass it on to moment's constructor
|
||||
isAmbigTime = true;
|
||||
isAmbigZone = true;
|
||||
}
|
||||
|
||||
@@ -35,14 +35,14 @@ describe('event object creation', function() {
|
||||
|
||||
it('doesn\'t produce an event when an invalid start', function() {
|
||||
init({
|
||||
start: 'asdf'
|
||||
start: new Date('asdf') // we use Date constructor to avoid annoying momentjs warning
|
||||
});
|
||||
expect(event).toBeUndefined();
|
||||
});
|
||||
|
||||
it('doesn\'t produce an event when an invalid end', function() {
|
||||
init({
|
||||
end: 'asdf'
|
||||
end: new Date('asdf') // we use Date constructor to avoid annoying momentjs warning
|
||||
});
|
||||
expect(event).toBeUndefined();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user