Added new route for setting last cron and updated front end

This commit is contained in:
Keith Holliday
2016-05-18 23:24:32 +01:00
parent 0a14d29ebb
commit e8b53d6b22
4 changed files with 41 additions and 5 deletions
+2 -1
View File
@@ -17,6 +17,7 @@ describe('Settings Controller', function () {
releasePets: sandbox.stub(),
releaseMounts: sandbox.stub(),
releaseBoth: sandbox.stub(),
setLastCron: sandbox.stub(),
user: user
};
@@ -97,8 +98,8 @@ describe('Settings Controller', function () {
expect(User.set).to.be.calledOnce;
expect(User.set).to.be.calledWith({
'preferences.dayStart': 5,
'lastCron': expectedTime
});
expect(User.setLastCron).to.be.calledWith(expectedTime);
});
});