Merge pull request #3075 from overleaf/msm-codemod-oerror-v3-logging

Replaced logger.warn statements with OError.tag()

GitOrigin-RevId: 4d821ec48a0006abb1fcffe07dbb5511c88f5b9a
This commit is contained in:
Miguel Serrano
2020-08-11 11:35:08 +02:00
committed by Copybot
parent d2845d9a38
commit 2e8f66ac6b
33 changed files with 487 additions and 489 deletions
@@ -79,12 +79,13 @@ describe('InactiveProjectManager', function() {
)
})
it('should not mark project as active if error with unarchinging', function(done) {
this.DocstoreManager.unarchiveProject.callsArgWith(1, 'error')
it('should not mark project as active if error with unarchiving', function(done) {
const error = new Error('error')
this.DocstoreManager.unarchiveProject.callsArgWith(1, error)
return this.InactiveProjectManager.reactivateProjectIfRequired(
this.project_id,
err => {
err.should.equal('error')
err.should.equal(error)
this.DocstoreManager.unarchiveProject
.calledWith(this.project_id)
.should.equal(true)