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()
"./ProjectManager": @ProjectManager = {}
"logger-sharelatex" : @logger = { log: sinon.stub() }
"./ProjectFlusher": {flushAllProjects:->}
"./Metrics": @Metrics = {}
"./Errors" : Errors
@Metrics.Timer = class Timer