mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
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:
parent
06c4c0dcb5
commit
e6307237e4
6 changed files with 4 additions and 14 deletions
|
@ -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(
|
||||
|
|
|
@ -30,9 +30,7 @@ describe('InstitutionsGetter', function() {
|
|||
'../UserMembership/UserMembershipsHandler': (this.UserMembershipsHandler = {}),
|
||||
'../UserMembership/UserMembershipEntityConfigs': (this.UserMembershipEntityConfigs = {}),
|
||||
'logger-sharelatex': {
|
||||
log() {
|
||||
return console.log(arguments)
|
||||
},
|
||||
log() {},
|
||||
err() {}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -49,9 +49,7 @@ describe('PublishersGetter', function() {
|
|||
}
|
||||
}),
|
||||
'logger-sharelatex': {
|
||||
log() {
|
||||
return console.log(arguments)
|
||||
},
|
||||
log() {},
|
||||
err() {}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 = {}),
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -75,9 +75,7 @@ describe('UserEmailsController', function() {
|
|||
'../Errors/HttpErrorHandler': this.HttpErrorHandler,
|
||||
'../Errors/Errors': Errors,
|
||||
'logger-sharelatex': {
|
||||
log() {
|
||||
console.log(arguments)
|
||||
},
|
||||
log() {},
|
||||
err() {}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue