angular.module('fbMocks') .factory('globalTimerService', ['$q', function ( $q: ng.IQService ): fb.IGlobalTimerService { return { init: function () { }, globalSave: function (force?: boolean) { }, status: { lastSaveOccured: new Date().getTime(), pingLock: false, lastPingResponse: new Date().getTime(), }, ping: function () { }, saveToLocalStorage: function () { }, saveItem: function (item) { return null;}, }; }]); angular.module('globalTimerServiceMock', []); angular.module('globalTimerServiceMock') .factory('globalTimerService', ['$q', function ( $q: ng.IQService ): fb.IGlobalTimerService { return { init: function () { }, globalSave: function (force?: boolean) { }, status: { lastSaveOccured: new Date().getTime(), pingLock: false, lastPingResponse: new Date().getTime(), }, ping: function () { }, saveToLocalStorage: function () { }, saveItem: function (item) { return null; }, }; }]);