import { deprecate } from '../utils/deprecate';
proto.clone = deprecate(
'clone does nothing in Moment v3.x because the API is now immutable. Use moment(instance) to make a copy.',
- function clone() { return this; });
+ function clone() {
+ return this;
+ });
proto.dates = deprecate(
'dates accessor is deprecated. Use date instead.',
wrap(Moment, getSetDayOfMonth, true));
assert.equal(a.milliseconds(), 9, 'milliseconds');
var c = moment([2016,0,1]);
- c = c.set({weekYear: 2016});
+ c = c.set({weekYear: 2016});
assert.equal(c.weekYear(), 2016, 'week year correctly sets with object syntax');
- c = c.set({quarter: 3});
+ c = c.set({quarter: 3});
assert.equal(c.quarter(), 3, 'quarter sets correctly with object syntax');
});