stub out project flusher for unit tests

This commit is contained in:
Henry Oswald 2019-05-07 15:46:30 +01:00
parent 4b8a27a220
commit e57741cb80

View file

@ -13,6 +13,7 @@ describe "HttpController", ->
flushProjectChangesAsync: sinon.stub() flushProjectChangesAsync: sinon.stub()
"./ProjectManager": @ProjectManager = {} "./ProjectManager": @ProjectManager = {}
"logger-sharelatex" : @logger = { log: sinon.stub() } "logger-sharelatex" : @logger = { log: sinon.stub() }
"./ProjectFlusher": {flushAllProjects:->}
"./Metrics": @Metrics = {} "./Metrics": @Metrics = {}
"./Errors" : Errors "./Errors" : Errors
@Metrics.Timer = class Timer @Metrics.Timer = class Timer