mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-02 13:49:00 +02:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user