Merge pull request #12206 from overleaf/em-camel-case-docupdater
Camel case variables in document-updater GitOrigin-RevId: 76ad0921cc059878f21639547fad1bff1913bc8b
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
/* eslint-disable
|
||||
camelcase,
|
||||
no-return-assign,
|
||||
no-unused-vars,
|
||||
*/
|
||||
@@ -68,9 +67,9 @@ describe('ProjectManager - flushAndDeleteProject', function () {
|
||||
})
|
||||
|
||||
it('should delete each doc in the project', function () {
|
||||
return Array.from(this.doc_ids).map(doc_id =>
|
||||
return Array.from(this.doc_ids).map(docId =>
|
||||
this.DocumentManager.flushAndDeleteDocWithLock
|
||||
.calledWith(this.project_id, doc_id, {})
|
||||
.calledWith(this.project_id, docId, {})
|
||||
.should.equal(true)
|
||||
)
|
||||
})
|
||||
@@ -97,8 +96,8 @@ describe('ProjectManager - flushAndDeleteProject', function () {
|
||||
.stub()
|
||||
.callsArgWith(1, null, this.doc_ids)
|
||||
this.DocumentManager.flushAndDeleteDocWithLock = sinon.spy(
|
||||
(project_id, doc_id, options, callback) => {
|
||||
if (doc_id === 'doc-id-1') {
|
||||
(projectId, docId, options, callback) => {
|
||||
if (docId === 'doc-id-1') {
|
||||
return callback(
|
||||
(this.error = new Error('oops, something went wrong'))
|
||||
)
|
||||
@@ -118,9 +117,9 @@ describe('ProjectManager - flushAndDeleteProject', function () {
|
||||
})
|
||||
|
||||
it('should still flush each doc in the project', function () {
|
||||
return Array.from(this.doc_ids).map(doc_id =>
|
||||
return Array.from(this.doc_ids).map(docId =>
|
||||
this.DocumentManager.flushAndDeleteDocWithLock
|
||||
.calledWith(this.project_id, doc_id, {})
|
||||
.calledWith(this.project_id, docId, {})
|
||||
.should.equal(true)
|
||||
)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user