mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-01 05:11:34 +02:00
Promisify tests
GitOrigin-RevId: 6f413f4c5ef8d034b4e94afacdf2d7b43c3a8830
This commit is contained in:
@@ -430,14 +430,15 @@ describe('ProjectEntityHandler', function () {
|
||||
})
|
||||
})
|
||||
|
||||
it('should call the callback with the lines, version and rev', function (done) {
|
||||
this.ProjectEntityHandler.getDoc(projectId, docId, doc => {
|
||||
this.DocstoreManager.promises.getDoc
|
||||
.calledWith(projectId, docId)
|
||||
.should.equal(true)
|
||||
expect(doc).to.exist
|
||||
done()
|
||||
})
|
||||
it('should call the callback with the lines, version and rev', async function () {
|
||||
const doc = await this.ProjectEntityHandler.promises.getDoc(
|
||||
projectId,
|
||||
docId
|
||||
)
|
||||
this.DocstoreManager.promises.getDoc
|
||||
.calledWith(projectId, docId)
|
||||
.should.equal(true)
|
||||
expect(doc).to.exist
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user