Merge pull request #3207 from overleaf/jpa-drop-console-log

[misc] drop console.log calls in tests

GitOrigin-RevId: 156c94761e55648a92cf98d4c3cce20abb5de623
This commit is contained in:
Chrystal Maria Griffiths 2020-09-18 12:04:09 +02:00 committed by Copybot
parent 06c4c0dcb5
commit e6307237e4
6 changed files with 4 additions and 14 deletions

View file

@ -99,7 +99,6 @@ describe('RestoringFiles', function() {
)
expect(restored_doc._id.toString()).to.equal(this.restored_doc_id)
expect(this.doc._id).to.not.equal(this.restored_doc_id)
// console.log @doc_id, @restored_doc_id, MockDocstoreApi.docs[@project_id]
expect(
MockDocstoreApi.docs[this.project_id][this.restored_doc_id].lines
).to.deep.equal(

View file

@ -30,9 +30,7 @@ describe('InstitutionsGetter', function() {
'../UserMembership/UserMembershipsHandler': (this.UserMembershipsHandler = {}),
'../UserMembership/UserMembershipEntityConfigs': (this.UserMembershipEntityConfigs = {}),
'logger-sharelatex': {
log() {
return console.log(arguments)
},
log() {},
err() {}
}
}

View file

@ -49,9 +49,7 @@ describe('PublishersGetter', function() {
}
}),
'logger-sharelatex': {
log() {
return console.log(arguments)
},
log() {},
err() {}
}
}

View file

@ -32,9 +32,7 @@ describe('FeaturesUpdater', function() {
'./PlansLocator': (this.PlansLocator = {}),
'logger-sharelatex': {
log() {},
warn(obj, text) {
console.log(text)
}
warn() {}
},
'settings-sharelatex': (this.Settings = {}),
'../Referal/ReferalFeatures': (this.ReferalFeatures = {}),

View file

@ -246,7 +246,6 @@ describe('UserEmailsConfirmationHandler', function() {
})
it('should call the callback with a NotFoundError', function() {
console.log(this.callback.lastCall.args)
return this.callback
.calledWith(sinon.match.instanceOf(Errors.NotFoundError))
.should.equal(true)

View file

@ -75,9 +75,7 @@ describe('UserEmailsController', function() {
'../Errors/HttpErrorHandler': this.HttpErrorHandler,
'../Errors/Errors': Errors,
'logger-sharelatex': {
log() {
console.log(arguments)
},
log() {},
err() {}
}
}