-
Notifications
You must be signed in to change notification settings - Fork 306
Closed
Description
Either by making a build with only core, date and formats and by importing sugar-full.min.js, the create method for Date is not defined, I am interested in the natural language date parsing
Date.create
undefined
--EDIT
Using sinon fakeTimers restores Date methods and deletes Date.create, following code will break Date.create:
it('should be past due if due has passed', function(){
clock = sinon.useFakeTimers(new Date(2014,1,1).getTime());
expect( task.is_past_due ).to.eq(false)
clock = sinon.useFakeTimers(new Date(2015,1,1).getTime());
expect( task.is_past_due ).to.eq(true)
clock.restore();
});